[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 

Storing Data in EEPROM RSS feed
Forum Index » tcMenu Arduinio library
Author Message
blook


Joined: Oct 6, 2019
Messages: 1
Offline
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
davetcc


Joined: Jan 19, 2019
Messages: 362
Offline
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/
 
Forum Index » tcMenu Arduinio library
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer