Syntax
VMUINT8 read(
    int addr
);
ContentsIndex
PreviousUpNext
LEEPROMClass::read Method
LEEPROMClass Class | Example
Syntax
VMUINT8 read(
    int addr
);
Description

LEEPROMClass(); 

Writes a byte to the EEPROM.

Parameters
Parameters 
Description 
int addr 
addr: The location to read from, starting from 0 (Integer). 
Returns

VMUINT8

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

LEEPROM.h

Class