Skip to content

Instantly share code, notes, and snippets.

@turbinenreiter
Created June 15, 2013 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save turbinenreiter/5788343 to your computer and use it in GitHub Desktop.
Save turbinenreiter/5788343 to your computer and use it in GitHub Desktop.
This Arduino-sketch reads data from the EEPROM and prints it to the Serial Monitor.
#include <EEPROM.h>
int m = 0;
int n = 0;
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(9600);
}
// the loop routine runs over and over again forever:
void loop() {
while(n<1024){
m = EEPROM.read(n);
n = n + 1;
Serial.println(m);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment