You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
297 B
Plaintext
22 lines
297 B
Plaintext
15 years ago
|
/*
|
||
|
* EEPROM Clear
|
||
|
*
|
||
|
* Sets all of the bytes of the EEPROM to 0.
|
||
|
*/
|
||
|
|
||
|
#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()
|
||
|
{
|
||
|
}
|