Hide minor edits - Show changes to markup
Examples > EEPROM Library
Sets all of the bytes of the EEPROM to 0.
Ejemplos > Librería EEPROM
Pone todos los bytes de la EEPROM a 0.
// write a 0 to all 512 bytes of the EEPROM
// escribe 0 en todos los 512 bytes de la EEPROM
// turn the LED on when we're done
// enciende el LED cuando acaba
@]
Examples > EEPROM Library
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()
{
}