From 0dcd4b220904574d674421af6f443adc9b99946a Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 21 Nov 2013 11:19:08 +0100 Subject: Revert "EEPROM library to the new format" This reverts commits: 3223d4fdca32ec03de4a3a2a0c22f2d40de5f374 77f8dd63ab102ab5d2929ac4edd5c00ae9d70493 --- .../EEPROM/examples/eeprom_clear/eeprom_clear.ino | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 libraries/EEPROM/examples/eeprom_clear/eeprom_clear.ino (limited to 'libraries/EEPROM/examples/eeprom_clear') diff --git a/libraries/EEPROM/examples/eeprom_clear/eeprom_clear.ino b/libraries/EEPROM/examples/eeprom_clear/eeprom_clear.ino new file mode 100644 index 0000000..b18ff2c --- /dev/null +++ b/libraries/EEPROM/examples/eeprom_clear/eeprom_clear.ino @@ -0,0 +1,23 @@ +/* + * EEPROM Clear + * + * Sets all of the bytes of the EEPROM to 0. + * This example code is in the public domain. + + */ + +#include + +void setup() +{ + // write a 0 to all 512 bytes of the EEPROM + for (int i = 0; i < 512; i++) + EEPROM.write(i, 0); + + // turn the LED on when we're done + digitalWrite(13, HIGH); +} + +void loop() +{ +} -- cgit v1.2.3-18-g5258