Skip to content

Instantly share code, notes, and snippets.

@lvidarte
Created May 26, 2017 13:43
Show Gist options
  • Save lvidarte/1d0a85dea815989cc94ea5caa55c8ab5 to your computer and use it in GitHub Desktop.
Save lvidarte/1d0a85dea815989cc94ea5caa55c8ab5 to your computer and use it in GitHub Desktop.
EEPROM ESP8266
#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