mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-04 15:24:12 +01:00
35777612c0
All examples in /build/shared/examples/ and /libraries/ have had their extensions changed to .ino
24 lines
344 B
C++
24 lines
344 B
C++
/*
|
|
* 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()
|
|
{
|
|
// 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()
|
|
{
|
|
}
|