1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-05 16:24:12 +01:00
Arduino/libraries/EEPROM/examples/eeprom_clear/eeprom_clear.ino

24 lines
344 B
Arduino
Raw Normal View History

2007-05-04 23:53:23 +02:00
/*
* EEPROM Clear
*
* Sets all of the bytes of the EEPROM to 0.
2010-02-24 04:49:52 +01:00
* This example code is in the public domain.
2007-05-04 23:53:23 +02:00
*/
#include <EEPROM.h>
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()
{
}