You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A practical method of allocating and initiating a variable in eeprom is to use the AVR EEMEM attribute (short form for a GCC function attribute). Unfortunately the initialization gets lost in the build/upload process in Arduino.
uint8_t foo EEMEM = 42;
eeprom_read_byte((const uint8_t*) &foo); // will return 255 and not 42