Project

General

Profile

Statistics
| Branch: | Revision:

root / arduino-1.0 / libraries / EEPROM / examples / eeprom_clear / eeprom_clear.ino @ 58d82c77

History | View | Annotate | Download (344 Bytes)

1
/*
2
 * EEPROM Clear
3
 *
4
 * Sets all of the bytes of the EEPROM to 0.
5
 * This example code is in the public domain.
6

    
7
 */
8

    
9
#include <EEPROM.h>
10

    
11
void setup()
12
{
13
  // write a 0 to all 512 bytes of the EEPROM
14
  for (int i = 0; i < 512; i++)
15
    EEPROM.write(i, 0);
16
    
17
  // turn the LED on when we're done
18
  digitalWrite(13, HIGH);
19
}
20

    
21
void loop()
22
{
23
}