I usually add this near the top of my code before any variable declarations
Just be mindful of how much EEPROM your chip has, and you might want to write 255 instead of 0. You might only use 10 locations and that would look likeCode:data @0, 0(256) 'set all EEPROM data to 0 on initial programming
Then early in the loop read and check for the default valueCode:data @0, 255(10) 'set 10 EEPROM data to 255 on initial programming
David
Bookmarks