store value in eeprom

How to store dimmer value into EEPROM?

TOPIC SPLIT
DO NOT HIJACK / NECRO POST !

Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

Additionally the "Report to moderator" is NOT a reply button.

jito79:
How to store dimmer value into EEPROM?

Please, state the numerical value of the 'dimmer variable' and the EEPROM locations (Fig-1) into which you want to save the variable. Also, mention the type of Arduino Learning Kit - UNO/NANO/MEGA?

eeprom-1.png
Figure-1:

eeprom-1.png

OK, seeing that your other post was deleted

It depends on the board that you're using (which you conveniently forgot to mention).

Have a look at EEPROM.put() and EEPROM.get() for Arduinos; this will probably not work for ESP and STM (no experience with those).

sterretje:
Have a look at EEPROM.put() and EEPROM.get() for Arduinos; this will probably not work for ESP and STM (no experience with those).

When the following codes are included in a sketch, the ESP8266/NodeMCU emulates UNO's EEPROM.

EEPROM.begin(512); //EEPROM size is 512 bytes
EEPROM.commit();     //needed to finish write up into EEPROM.
EEPROM.end(); // to release the EEPROM back to flash

Hi,
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.

What model Arduino are you using?

Tom... :slight_smile: