Created
May 15, 2018 13:33
-
-
Save iotguider/64621a21262c6c12a794c5a15774a697 to your computer and use it in GitHub Desktop.
Code for Reading in EEPROM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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