]> git.piffa.net Git - arduino/blob - books/ArduinoNextSteps-master/ArduinoNextSteps/sketch_06_07_avr_eeprom_int/sketch_06_07_avr_eeprom_int.ino
first commit
[arduino] / books / ArduinoNextSteps-master / ArduinoNextSteps / sketch_06_07_avr_eeprom_int / sketch_06_07_avr_eeprom_int.ino
1 // sketch_06_07_avr_eeprom_int
2
3 #include <avr/eeprom.h>
4
5 void setup()
6 {
7   int i = eeprom_read_word((uint16_t*)10);
8   i++;
9   eeprom_write_word((uint16_t*)10, i);
10   Serial.begin(9600);
11   Serial.println(i);
12 }
13
14 void loop()
15 {
16 }