Tutorial.EEPROMClear History

Hide minor edits - Show changes to markup

June 04, 2010, at 09:58 AM by Equipo Traduccion -
Changed lines 1-8 from:

Examples > EEPROM Library

EEPROM Clear

Sets all of the bytes of the EEPROM to 0.

Code

to:

Ejemplos > Librería EEPROM

Borrado de EEPROM

Pone todos los bytes de la EEPROM a 0.

Código

Changed line 14 from:
  // write a 0 to all 512 bytes of the EEPROM
to:
  // escribe 0 en todos los 512 bytes de la EEPROM
Changed line 18 from:
  // turn the LED on when we're done
to:
  // enciende el LED cuando acaba 
Changed lines 27-31 from:
to:
May 22, 2008, at 04:32 AM by David A. Mellis -
Changed lines 29-31 from:
to:
May 22, 2008, at 04:32 AM by David A. Mellis -
Changed lines 25-31 from:

@]

to:

@]

See also

May 22, 2008, at 04:27 AM by David A. Mellis -
Added lines 1-25:

Examples > EEPROM Library

EEPROM Clear

Sets all of the bytes of the EEPROM to 0.

Code

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

Share