I’m trying to write to the EEPROM on the Sparkfun Thing (ESP8266). I wrote the following sketch:
#include <EEPROM.h>
void setup()
{
unsigned char data;
Serial.begin(115200);
EEPROM.begin(10);
data = EEPROM.read(0);
Serial.println("Go");
if(data == 0x55)
{
Serial.printf("Valid signature found, ...[0x%02x]\n",data);
}
else
{
Serial.printf("No signature found, writing...[0x%02x]\n",data);
EEPROM.write(0,0x55);
EEPROM.commit();
delay(10);
}
}
void loop()
{
Serial.println("Loop...");
delay(1000);
}
Seems like the data never gets written to the EEPROM
Anything I’m missing ?