Search code examples
arduinoincludeesp8266arduino-ideeeprom

"#include <avr/eeprom.h>" in Arduino-IDE?


After a long time I tried to get back in Arduino Programming. But with my old code I get the following error:

 fatal error: avr/eeprom.h: No such file or directory
 #include <avr/eeprom.h>
            ^
compilation terminated.
exit status 1

So why doesn't he find the avr library. Do I need to install it manually? And where can I find a download of it?


Solution

  • The <avr/eeprom.h> is available only for the AVR architecture. It's not possible to use it on other MCU architectures.

    And ESP8266 is definitely completely different MCU architecture.