#include <EEPROM.h>
int address =0; // var for address start from 0
byte value;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
EEPROM.write(10,50); //write address 10 with 50
}
void loop() {
// put your main code here, to run repeatedly:
value = EEPROM.read(address); // read data from EEPROM
Serial.print(address);
Serial.print("\t");
Serial.print(value);
Serial.println();
address = address +1;
delay(500);
}