Tutorial.EEPROMRead History

Hide minor edits - Show changes to markup

June 04, 2010, at 08:20 PM by Equipo Traduccion -
Changed lines 3-4 from:

EEPROM Read

to:

Lectura de EEPROM

Changed lines 45-47 from:
to:
June 04, 2010, at 08:07 PM by Equipo Traduccion -
Changed lines 1-2 from:

Examples > EEPROM Library

to:

Ejemplos > librería EEPROM

Changed lines 5-8 from:

Reads the value of each byte of the EEPROM and prints it to the computer.

Code

to:

Lee el valor de cada byte de la EEPROM y lo imprime por el puerto serie.

Código

Changed lines 12-15 from:

// start reading from the first byte (address 0) of the EEPROM int address = 0; byte value;

to:

// empieza en el primer byte (dirección 0) de la EEPROM int direccion = 0; byte valor;

Changed lines 23-24 from:
  // read a byte from the current address of the EEPROM
  value = EEPROM.read(address);
to:
  // Lee un byte de cada direccion de la EEPROM
  valor = EEPROM.read(direccion);
Changed line 26 from:
  Serial.print(address);
to:
  Serial.print(direccion);
Changed line 28 from:
  Serial.print(value, DEC);
to:
  Serial.print(valor, DEC);
Changed lines 31-32 from:
  // advance to the next address of the EEPROM
  address = address + 1;
to:
  // incrementa "direccion" en 1 para avanzar a la siguiente dirección de la EEPROM
  direccion = direccion + 1;
Changed lines 34-37 from:
  // there are only 512 bytes of EEPROM, from 0 to 511, so if we're
  // on address 512, wrap around to address 0
  if (address == 512)
    address = 0;
to:
  // Solamente hay 512 bytes de EEPROM, desde 0 hasta 511 
  // Si estamos en la direccion 512, volvemos a la dirección 0
  if (direccion == 512)
    direccion = 0;
Changed lines 43-47 from:
to:
May 22, 2008, at 04:33 AM by David A. Mellis -
Changed lines 41-47 from:

@]

to:
May 22, 2008, at 04:28 AM by David A. Mellis -
Added lines 1-41:

Examples > EEPROM Library

EEPROM Read

Reads the value of each byte of the EEPROM and prints it to the computer.

Code

#include <EEPROM.h>

// start reading from the first byte (address 0) of the EEPROM
int address = 0;
byte value;

void setup()
{
  Serial.begin(9600);
}

void loop()
{
  // read a byte from the current address of the EEPROM
  value = EEPROM.read(address);

  Serial.print(address);
  Serial.print("\t");
  Serial.print(value, DEC);
  Serial.println();

  // advance to the next address of the EEPROM
  address = address + 1;

  // there are only 512 bytes of EEPROM, from 0 to 511, so if we're
  // on address 512, wrap around to address 0
  if (address == 512)
    address = 0;

  delay(500);
}

Share