5 · Communication & data
Remember after power-off (EEPROM)
Advanced20 min
Goal
Keep a setting even after a restart.
Why it matters
RAM is wiped at power-off: EEPROM keeps user settings.
Steps
- 01Include <EEPROM.h>.
- 02Read the stored value at start-up.
- 03Write with EEPROM.update() (writes only when the value changes).
- 04Print the restored value.
This tutorial runs inside the Circuitly simulator: your wiring and your code are checked automatically at every step.
Next tutorials
- Control the board from the keyboard
Switch the LED on/off with the “on” and “off” commands.
- Log data as CSV
Produce “time;value” lines usable in a spreadsheet.
- State machine
Structure a traffic light into explicit states (GREEN, AMBER, RED).
- Three tasks in parallel
Blink, measure and display at three different rates.