Arduino and Genuino 101 Development Workshop - Agus Kurniawan Part 015
Arduino and Genuino 101 Development Workshop - Agus Kurniawan Part 015
Serial.write('0');
}
Serial.print(number);
}
In this chapter I’m going to explain how to work with EEPROM in Arduino/Genuino 101.
8.1 Getting Started
EEPROM stands for Electrically Erasable Programmable Read-Only Memory and is a
type of non-volatile memory used in computers and other electronic devices to store small
amounts of data that must be saved when power is removed.
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.
To access EEPROM on Arduino board, we can use EEPROM object. Further information
about EEPROM, you can read it on https://www.arduino.cc/en/Reference/EEPROM .
8.2 EEPROM Demo
In this section, we try to access EEPROM on Arduino/Genuino 101. To access EEPROM
on Arduino/Genuino 101, you need CurieEEPROM. Unfortunately, it doesn’t update on
Arduino software but you download it on https://github.com/01org/corelibs-
arduino101/releases .
Open Arduino software and check a path of Sketchbook location, shown in Figure below.