Hi all, I just wrote up a handy example on reading and writing EEPROM values for persistent storage:
Let me know what you think ![]()
—t3db0t
Hi all, I just wrote up a handy example on reading and writing EEPROM values for persistent storage:
Let me know what you think ![]()
—t3db0t
Hi
I really like the style of this. Simple, and well commented.
The only remarks I'd make is if you could have an image of the circuit you've breadboarded (with hooking up the momentary switch in this case) with a list of requirements (ie Arduino Uno, breadboard, wires & tact switch) you'll make it even more accessible. Fritzing is a common choice for this as it also gives you the circuit schematic which is useful for more complex examples. For something as simple as this, including a photo of the setup would probably do the job nicely.
Over time it would be great if over time you built this out to include other examples, like storing multiple different items of data (like the top 10 scores, or data logging), use of I2C EEPROM to expand what's available on the ATmega, and also wear levelling so you're not just smashing the first locations in the address space too. There are discussions of these available, but not always in a style like yours which is accessible and easy to grasp.
Cheers ! Geoff