Register / Login  |  Desktop view  |  Jump to bottom of page

tcMenu Arduinio library » Storing Data in EEPROM

Author: blook
06/10/2019 02:23:23
Hi,

i have some problems saving the values into the EEPROM. Where is the best place to call the menuMgr.save(eeprom) function?
I use a NANO and the 5110 test sample provided.

Thanks

Author: davetcc
06/10/2019 19:37:40
Could you elaborate on the issue please, for example:

Does it fail to save / write corrupt data?

I’m not familiar with the nano, is it an AVR unit? If so are you using the inbuilt eeprom?

The best place to save is either to provide a save function somewhere on the menu, or to detect the power down state and then save during the power loss detection. See this page.

https://www.thecoderscorner.com/electronics/microcontrollers/psu-control/detecting-power-loss-in-powersupply/




Register / Login  |  Desktop view  |  Jump to top of page