|
|
@@ -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
|