Usage status collection May 27, 2019 06:08AM |
Registered: 5 years ago Posts: 23 |
Re: Usage status collection May 27, 2019 07:39AM |
Admin Registered: 13 years ago Posts: 7,000 |
Re: Usage status collection May 28, 2019 12:39AM |
Registered: 5 years ago Posts: 23 |
serialprintPGM(eeprom_read_byte(uint8_t *0));but it returns gibberish
⸮M⸮Q⸮W⸮[⸮_⸮e⸮i⸮m⸮s⸮w⸮{⸮(⸮-⸮2⸮<⸮FĿ⸮P⸮X⸮`⸮j⸮t⸮~čėĿġīĵ⸮J⸮;;⸮n⸮⸮⸮⸮⸮/=lt1⸮⸮V⸮=⸮=
eeprom_write_byte (0, variable)
Re: Usage status collection May 28, 2019 01:08AM |
Admin Registered: 13 years ago Posts: 7,000 |
Re: Usage status collection May 28, 2019 05:20AM |
Registered: 5 years ago Posts: 23 |
#define EEPROM_OFFSET 100 #define EEPROM_VERSION "V21" #ifdef EEPROM_SETTINGS void Config_StoreSettings() { char ver[4]= "000"; int i=EEPROM_OFFSET; EEPROM_WRITE_VAR(i,ver); // invalidate data first
bool test = true; EEPROM.write(0, test); bool verify; verify= EEPROM.read(0); if(verify){ serialprintPGM(PSTR("same")); }else{ serialprintPGM(PSTR("problem")); }
Re: Usage status collection May 28, 2019 08:10AM |
Admin Registered: 13 years ago Posts: 7,000 |