0% found this document useful (0 votes)
13 views

Arduino and Genuino 101 Development Workshop - Agus Kurniawan Part 015

Arduino and Genuino 101 Development Workshop - Agus Kurniawan

Uploaded by

SANTOSH KHANAL
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Arduino and Genuino 101 Development Workshop - Agus Kurniawan Part 015

Arduino and Genuino 101 Development Workshop - Agus Kurniawan

Uploaded by

SANTOSH KHANAL
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

if (number >= 0 && number < 10) {

Serial.write('0');
}
Serial.print(number);
}

Save this program as RTCdemo.ino.

Now you compile and upload the program.


To see the program output, you can open Serial Monitor tool.
8. Accessing EEPROM

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.

Extract file from https://github.com/01org/corelibs-arduino101/releases . Copy


CurieEEPROM from libraries folder into Sketchbook location folder. You can see it on the
Figure below.

You might also like