Programming - EEPROM

HI! Maybe someone does know how this project https://create.arduino.cc/projecthub/danhostler1985/six-button-menu-configuration-70825e
can work with EEPROM?? When i turned off the microcontroller, this values are go 0. I cant fix it, please help !

Thanks.

Please post the sketch here (using code tags when you do) to avoid the need to visit another site

I presume that you want to have the Arduino return to the same menu level when restarted or reset. Is that correct ?

Please post your best attempt and describe the problems with it

Not all Arduinos have EEPROM and in some you have to execute a Write before it is saved. Which one do you have? The Arduino tool chain requires you to commit which writes the data to the pseudo EEPROM. Thanks sterretje, I have been looking at a different set of tools.

Did you mean Commit ?

I have got the arduino UNO. I still cant fix this problem

No one can help you if you don't post your code. If you don't know how, the following will get you sorted, though it's a bit long:

C

The microcontroller on the Arduino boards have 512 bytes of EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive). There are many (thousands) examples of how to do this on the internet. I do not have the time or inclination to write the code for you. Post your code per the forum recommendations and we will try to help you.

https://docs.arduino.cc/learn/programming/eeprom-guide is applicable to your board.

Please show your attempt at implementing EEPROM in the existing sketch.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.