Arduino

Buy | Download | Getting Started | Learning | Reference | Hardware | FAQ

Blog » | Forum » | Playground »

Reference Language (extended) | Libraries | Comparison | Board

## byte EEPROM.read(address)

#### Description

Reads a byte from the EEPROM.

#### Parameters

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

#### Returns

the value stored in that location (byte)

#### Example

    #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);
    }

#### See also

- EEPROM.write()

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Edit Page | Page History | Printable View | All Recent Site Changes