Permanent Saving to EEPROM

Hi,
I wish to automatically save my version number and version date into the eeprom each time I upload a newly revised program, but I do not want it to be re-saved or modified at each program restart.
The above information is available, and can be modified in the sketch.

In other words, the EEPROM.write should come before program start.
How can this be done?
thanks,

Read it back… if it’s now different, write new values, otherwise don’t.

Thanks.
Good and acceptable solution option.
(How do I reward good answer in this form?)

samtal:
Thanks.
Good and acceptable solution option.
(How do I reward good answer in this form?)

Glad to help.

There's a + Karma button....

You can also repay the deed in the future when you have relevant experience and can
answer peoples' questions yourself. :slight_smile:

I've written a little script to do a similar function, you may find it useful: http://forum.arduino.cc/index.php?topic=229222.0