1
0
Fork 0
This repository has been archived on 2019-12-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
arduinisten/arduino-0022-linux-x64/libraries/EEPROM/examples/eeprom_clear/eeprom_clear.pde

24 lines
344 B
Text
Raw Permalink Normal View History

2010-03-30 20:09:55 +02:00
/*
* EEPROM Clear
*
* Sets all of the bytes of the EEPROM to 0.
2011-02-23 21:47:18 +01:00
* This example code is in the public domain.
2010-03-30 20:09:55 +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()
{
}