Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adafruit Huzzah ESP8266 #16

Open
ktorimaru opened this issue Oct 17, 2016 · 2 comments
Open

Adafruit Huzzah ESP8266 #16

ktorimaru opened this issue Oct 17, 2016 · 2 comments

Comments

@ktorimaru
Copy link

Hi

I'm working with a Adafruit Huzzah ESP8266 board and I can't seem to get the EDBSimple and EDB_Internal_EEPROM examples to work. They both run on a Arduino Uno without issue. On the Huzzah they do not appear to either read or write properly (zeros are printed for both recon and temp).

Has anyone else had this problem? Any thoughts on a possible fix? Note that I have been successfully reading and writing to the EEPROM and I'm investigating EDB as a better storage approach.

Ken

@ktorimaru
Copy link
Author

Found the problem!
http://esp8266.github.io/Arduino/versions/2.0.0/doc/libraries.html

Need to EEPROM.begin(4096) and EEPROM.commit() after a write!

@asjdf
Copy link

asjdf commented Feb 1, 2019

I have the same problem.Could you tell me how to fix this problem?

I change

void writer(unsigned long address, byte data)
{
  EEPROM.write(address, data);
}

into

void writer(unsigned long address, byte data)
{
  EEPROM.begin(4096);
  EEPROM.write(address, data);
  EEPROM.commit();
}

is it right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants