EEPROM

The Wiring EEPROM library allows for easily reading and storing data from/in the Wiring I/O board internal EEPROM.

EEPROM stands for Electrically Erasable Programmable Read Only Memory. It is a special kind of memory that retains its contents even when the power on the I/O board is turned off. The Wiring I/O board has 4K bytes of data EEPROM memory, which is a separate data space in which single bytes can be read and written. The EEPROM has an endurance of at least 100,000 write/erase cycles, which is not difficult to attain if you write data to it in a for loop, so special care has to be taken to avoid doing it by mistake.

The EEPROM is ideal to store data that doesn't change that often, like permanent message strings, or configuration for an application, etc. The EEPROM data bytes are addressed linearly between 0 and 4095

 

EEPROM
Wiring I/O board internal EEPROM.

write()
Stores a byte or char at a specific address in the Wiring I/O board interanal EEPROM.

read()
Returns a number between 0 and 255 for the byte stored at the address specified.