arkadiusz binder 5 سال پیش
والد
کامیت
f88b810ef0

+ 3 - 1
SE/stuff/P5_Automation_can-dev-res/P5_Automation_can-dev-res.ino

@@ -406,7 +406,9 @@ void loop() {
 
 
   time = millis();
   time = millis();
 
 
-  
+    #ifdef DISABLE_LOOP 
+        #include "___DEBUG_DISABLE_LOOP.h"
+    #endif
     #include "__main_loop_top.h"
     #include "__main_loop_top.h"
     
     
     
     

+ 10 - 0
SE/stuff/P5_Automation_can-dev-res/___DEBUG_DISABLE_LOOP.h

@@ -0,0 +1,10 @@
+
+#if Active_ControllerID == 0x101 
+     #include "___DEBUG_DISABLE_LOOP__0x101.h"
+#endif
+
+
+#if Active_ControllerID == 0x103 
+    #include "___DEBUG_DISABLE_LOOP__0x103.h" 
+#endif
+

+ 1 - 0
SE/stuff/P5_Automation_can-dev-res/___DEBUG_DISABLE_LOOP__0x101.h

@@ -0,0 +1 @@
+s

+ 0 - 0
SE/stuff/P5_Automation_can-dev-res/___DEBUG_DISABLE_LOOP__0x103.h


+ 5 - 1
SE/stuff/P5_Automation_can-dev-res/config_Active_ControllerID_0x103.h

@@ -3,4 +3,8 @@
 // #define HAS_LCD1602 
 // #define HAS_LCD1602 
 //#define HAS_ROTTARY_SW
 //#define HAS_ROTTARY_SW
 
 
-#define HAS_I2C_driver_Adafruit_PWMServoDriver 
+#define HAS_I2C_driver_Adafruit_PWMServoDriver 
+
+
+#define DEBUG 5 
+#define DISABLE_LOOP //To debug and disable any output