Hi
Does the EEPROM have factory default values?
The reason I ask is that I've created a sketch where the user must go through a setup procedure. Those values are then stored in the EEPROM (using something like this Arduino Playground - EEPROMLoadAndSaveSettings). On each restart of the sketch the settings are loaded back in to a settings object.
The issue I have encountered is that when the user interacts with the program for the very first time it needs to know whether the settings have been stored (otherwise the settings object will be loaded with garbage).
One idea is to use the first EEPROM byte to store a value which will let the sketch know whether settings have been stored (if so, the settings will be loaded; if not the user must go through the setup procedure). After the setup procedure, this EEPROM byte would be changed.
However, this will only work if the factory default EEPROM values are guaranteed to be a certain value. Is this the case?
Thanks