Skip to content

Instantly share code, notes, and snippets.

@iotguider
Created May 15, 2018 13:33
Show Gist options
  • Save iotguider/64621a21262c6c12a794c5a15774a697 to your computer and use it in GitHub Desktop.
Save iotguider/64621a21262c6c12a794c5a15774a697 to your computer and use it in GitHub Desktop.
Code for Reading in EEPROM
#include <EEPROM.h>
int a = 0;
int value;
void setup()
{
Serial.begin(9600);
}
void loop()
{
Serial.println("Reading from EEPROM................................");
Serial.println("Data in EEPROM is:");
Serial.print("Address");
Serial.print("\t");
Serial.println("Value");
for(a=0;a<9;a++)
{
value = EEPROM.read(a);
Serial.print(a);
Serial.print("\t");
Serial.println(char(value));
}
delay(50000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment