1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-10-19 21:09:48 +03:00

Adding EEPROM library examples.

This commit is contained in:
David A. Mellis
2007-05-04 21:53:23 +00:00
parent dd3a2c90e1
commit 42db4942dd
3 changed files with 97 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
/*
* 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()
{
}