OneWire library ESP8266 fatal error: avr/io.h: No such file or directory

I encountered this fatal error when trying to compile a program for the Adafruit ESP8266 Feather Huzzah that included the OneWire library by Paul Stroffregen. But it worked fine in Platformio. Using the library manager, I made sure I had the most recent version but it still didn't work.

Ultimately the solution was to erase the OneWire folder from the libraries folder and to manually download the library from github and used the "add .ZIP library" method under Sketch>Include Library.

That eliminated the error.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.