1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

EEPROM examples

This commit is contained in:
Ivan Grokhotkov
2014-12-12 10:37:40 +03:00
parent 900083e3ff
commit 25cab439f0
3 changed files with 112 additions and 0 deletions

View File

@ -0,0 +1,25 @@
/*
* EEPROM Clear
*
* Sets all of the bytes of the EEPROM to 0.
* This example code is in the public domain.
*/
#include <EEPROM.h>
void setup()
{
EEPROM.begin(512);
// 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);
EEPROM.end();
}
void loop()
{
}