Reference.EEPROMRead History

Show minor edits - Show changes to markup

October 26, 2010, at 05:01 PM by David A. Mellis -
Added lines 9-11:

Syntax

EEPROM.read(address)

October 26, 2010, at 05:00 PM by David A. Mellis -
Changed lines 1-2 from:

byte EEPROM.read(address)

to:

EEPROM

read()

Changed lines 11-12 from:

address: the location to read from, from 0 to 511 (int)

to:

address: the location to read from, starting from 0 (int)

Changed line 49 from:
to:
February 01, 2009, at 10:48 AM by David A. Mellis -
Changed lines 5-6 from:

Reads a byte from the EEPROM.

to:

Reads a byte from the EEPROM. Locations that have never been written to have the value of 255.

March 04, 2007, at 06:21 PM by David A. Mellis -
Changed lines 9-10 from:

address: which byte to read, from 0 to 511 (int)

to:

address: the location to read from, from 0 to 511 (int)

March 04, 2007, at 06:13 PM by David A. Mellis -
Changed lines 16-17 from:

[@ #include <EEPROM.h>

to:

[@

  1. include <EEPROM.h>
March 04, 2007, at 06:12 PM by David A. Mellis -
Changed lines 16-17 from:

to:
 #include <EEPROM.h>

int a = 0;
int value;

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

void loop()
{
  value = EEPROM.read(a);

  Serial.print(a);
  Serial.print("\t");
  Serial.print(value);
  Serial.println();

  a = a + 1;

  if (a == 512)
    a = 0;

  delay(500);
}
March 04, 2007, at 06:05 PM by David A. Mellis -
Added lines 1-20:

byte EEPROM.read(address)

Description

Reads a byte from the EEPROM.

Parameters

address: which byte to read, from 0 to 511 (int)

Returns

the value stored in that location (byte)

Example

See also

Share