Created
May 26, 2017 13:43
-
-
Save lvidarte/1d0a85dea815989cc94ea5caa55c8ab5 to your computer and use it in GitHub Desktop.
EEPROM ESP8266
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 <Arduino.h> | |
#include <EEPROM.h> | |
void setup () | |
{ | |
Serial.begin(115200); | |
EEPROM.begin(512); | |
int value = EEPROM.read(0); | |
Serial.println(""); | |
Serial.println(""); | |
Serial.println(value); | |
value++; | |
EEPROM.write(0, value); | |
EEPROM.commit(); | |
} | |
void loop () | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment