Arduino and Genuino 101 Development Workshop - Agus Kurniawan Part 016
Arduino and Genuino 101 Development Workshop - Agus Kurniawan Part 016
To achieve these actions, you can start to write program on Arduino software.
Write this program.
#include <CurieEEPROM.h>
byte value;
void setup() {
pinMode(13, OUTPUT);
Serial.begin(9600);
}
void loop() {
// get a size of EEPROM
Serial.print("EEPROM size: ");
Serial.print(EEPROM.length());
Serial.println(" bytes");
value = EEPROM.read(5);
Serial.print("value ADD 5 = ");
Serial.println(value);
value = EEPROM.read(10);
Serial.print("value ADD 10 = ");
Serial.println(value);
delay(5000);
}
Save this program as EEPROMDemo.
Now you can compile and upload the program into Arduino board. If done, open Serial
Monitor to see program output.
A sample of program output can be seen in Figure below.
9. Working with Arduino Firmata
This chapter explains how to control Arduino/Genuino 101 board from computer using
Firmata.