From 6005c59ad03446153c66a991f01ac91c31d98dac Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 7 Nov 2009 17:54:56 +0000 Subject: Moving libraries out of arduino platform / core directory and to top-level. --- .../EEPROM/examples/eeprom_read/eeprom_read.pde | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100644 libraries/EEPROM/examples/eeprom_read/eeprom_read.pde (limited to 'libraries/EEPROM/examples/eeprom_read/eeprom_read.pde') diff --git a/libraries/EEPROM/examples/eeprom_read/eeprom_read.pde b/libraries/EEPROM/examples/eeprom_read/eeprom_read.pde deleted file mode 100644 index 2e30708..0000000 --- a/libraries/EEPROM/examples/eeprom_read/eeprom_read.pde +++ /dev/null @@ -1,38 +0,0 @@ -/* - * EEPROM Read - * - * Reads the value of each byte of the EEPROM and prints it - * to the computer. - */ - -#include - -// start reading from the first byte (address 0) of the EEPROM -int address = 0; -byte value; - -void setup() -{ - Serial.begin(9600); -} - -void loop() -{ - // read a byte from the current address of the EEPROM - value = EEPROM.read(address); - - Serial.print(address); - Serial.print("\t"); - Serial.print(value, DEC); - Serial.println(); - - // advance to the next address of the EEPROM - address = address + 1; - - // there are only 512 bytes of EEPROM, from 0 to 511, so if we're - // on address 512, wrap around to address 0 - if (address == 512) - address = 0; - - delay(500); -} -- cgit v1.2.3-18-g5258