1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-19 09:42:11 +03:00
Files
esp8266/libraries/EEPROM/examples/eeprom_clear/eeprom_clear.pde

22 lines
297 B
Plaintext

/*
* 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()
{
}