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

Using avr functions in EEPROM.h #20

Closed
lkankowski opened this issue Feb 18, 2021 · 2 comments
Closed

Using avr functions in EEPROM.h #20

lkankowski opened this issue Feb 18, 2021 · 2 comments

Comments

@lkankowski
Copy link

I cant compile EEPROM.h on my laptop because the are used avr functions:

  • eeprom_read_byte
  • eeprom_write_byte
    Is that correct?

I am using Platformio, not makefile, but I think it is not correct.

@bxparks
Copy link
Owner

bxparks commented Feb 18, 2021

You are correct, EEPROM.h is not functional. When I committed that version, I made the smallest change possible to allow some of my programs compile. But if you actually try to use it, you get error messages as you saw.

However, you are in luck, because by sheer coincidence, I just checked in (like 5 minutes ago), 2 working implementations of EEPROM: one for AVR processors, and one for ESP8266/ESP32 processors. Please grab the latest version from the develop branch, and read the instructions at:

Each directory has an examples directory, which I hope is enough to explain how to use these.

@bxparks
Copy link
Owner

bxparks commented Feb 25, 2021

Closing for house cleaning. Pls reopen if you have updates.

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