mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-12 23:08:52 +01:00
2fa8deb92d
Compilation still has problems (Thread error on success, and can't handle non-pde files in a sketch). Modified the Mac OS X make.sh to copy the hardware, avr tools, and example over. Removing some of the antlr stuff. Disabling the Commander (command-line execution) for now. Added Library, LibraryManager, and Target. Added support for prefixed preferences (e.g. for boards and programmers).
22 lines
297 B
Plaintext
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()
|
|
{
|
|
}
|