Arkadiusz Binder před 5 roky
rodič
revize
bbc557fa54

+ 27 - 0
SE/stuff/P5_Automation_can-dev-res-working-1930/P5_Automation_can-dev-res-working-1930.ino

@@ -136,6 +136,30 @@ etc. To deactivate the Serial printing, define the macro empty:
 
 */
 
+#include <EEPROM.h>
+
+    
+    int EEPROM_Active_ControllerID_addr = 0 ;
+
+typedef int EEPROM_Active_ControllerID_read_T ;
+
+//    EEPROM.get( EEPROM_Active_ControllerID_addr, EEPROM_Active_ControllerID_read );
+  EEPROM_Active_ControllerID_read_T  EEPROM_Active_ControllerID_read = EEPROM.read( EEPROM_Active_ControllerID_addr  );
+
+   
+if(EEPROM_Active_ControllerID_read) {
+
+}
+ //  if(EEPROM_Active_ControllerID_read > 0 ) {
+        //const ing Active_ControllerID_E  = 0x13 ;
+      //  Serial.println("EER[OK]");
+ //   } else {
+       // Serial.println("EER[EMPT]");
+     //    const ing Active_ControllerID_E  = 0x13 ;
+  //      EEPROM.update(EEPROM_Active_ControllerID_addr, 0x13);
+   // }
+    
+
 
 
 #include "___CONFIG/config_Active_ControllerID.h" //there kleep id of device
@@ -431,6 +455,9 @@ etc. To deactivate the Serial printing, define the macro empty:
 void setup() {  //REMEMBER NOT INITIALIZE ANY VARIABLES OR ARRAYS
     Serial.begin(115200);
     
+    
+
+    
 #if defined(DEBUG) || defined(DEBUG_QUEUE)
          Serial.println("#329 Serial.begin(115200)");
 #endif

+ 6 - 1
SE/stuff/P5_Automation_can-dev-res-working-1930/___CONFIG/0x13/config_Active_ControllerID_0x13.h

@@ -11,4 +11,9 @@
 //#define DEBUG 5 
 //#define DISABLE_LOOP //To debug and disable any output
 
-#define DISABLE_TASK_TYPE_T_DISPLAY_queue_pop________
+#define DISABLE_TASK_TYPE_T_DISPLAY_queue_pop________
+
+
+#define TFT_ILI9163C_DCpin Port9 //8 // A0   data/command pin.   sometimes called DC, RS, ...
+
+#define TFT_ILI9163C__RSTpin Port8 //9 //reset pin.   you must connect.   (or pullup)

+ 1 - 1
SE/stuff/P5_Automation_can-dev-res-working-1930/___CONFIG/0x13/config_Slave_Ports_LOCAL_0x13_init.h

@@ -7,7 +7,7 @@ ARDUINO_FUNCT_INIT_RESULT_T _Slave_Ports_LOCAL_init(
                  Slave_Ports_Status_T_ARDUINO_ARRAY_ASSOC_TABLE_S_Port_ID_T*  Slave_Ports_Status_T_ARDUINO_ARRAY_ASSOC_TABLE_S_Port_ID_A,
                 
                 DISPLAY_T*  DISPLAY_A ,  DISPLAY_T_ARDUINO_ATTR_ARRAY_T &DISPLAY_T_ARDUINO_ATTR_ARRAY_A,
-               // time_seq_id_T time_seq_id,  time_min_run_T time_min_run
+                time_seq_id_T time_seq_id,  time_min_run_T time_min_run
                 //,*DISPLAY_PHYSICAL_CHAR_A //DISPLAY_PHYSICAL_CHAR_T 
                 ) {