Arduino

Reference Language | Libraries | Comparison | Changes

## EEPROM Library

The microcontroller on the Arduino AVR based board has EEPROM: memory whose values are kept when the board is turned off (like a tiny hard drive). This library enables you to read and write those bytes. The supported micro-controllers on the various Arduino boards have different amounts of EEPROM: 1024 bytes on the ATmega328, 512 bytes on the ATmega168 and ATmega8, 4 KB (4096 bytes) on the ATmega1280 and ATmega2560. ### Examples EEPROM Clear: Clear the bytes in the EEPROM. EEPROM Read: Read the EEPROM and send its values to the computer. EEPROM Write: Stores values from an analog input to the EEPROM. EEPROM Crc: Calculates the CRC of EEPROM contents as if it was an array. EEPROM Get: Get values from EEPROM and prints as float on serial. EEPROM Iteration: Understand how to go through the EEPROM memory locations. EEPROM Put: Put values in EEPROM using variable semantics. EEPROM Update: Stores values read from A0 into EEPROM, writing the value only if different, to increase EEPROM life. | #### Functions read() write() update() get() put() EEPROM[]

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

### Share

### This link has expired.
Please re-subscribe to our Newsletters.

### Subscribe to our Newsletters

Email

Please enter a valid email to subscribe

Arduino Newsletter
Arduino Store Newsletter

### Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy

###### Newsletter

- ©2015 Arduino
- Copyright Notice
- Contact us
- About us
- Careers