Downloading and installing the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By nikko4913
#50182 Hey.

For several days i've been struggling with some errors i get when trying to compile any sketch that uses avr libraries (eg. <avr/power.h> and so). This is what i get when trying to compile a sketch like that:

Code: Select allC:\Users\NikolajBanke\Desktop\ESP8266\ESP8266_BASE_12_10_15_ESP_part3\ESP8266_BASE_12_10_15_ESP_part3.ino:6:23: fatal error: avr/power.h: No such file or directory

 #include <avr/power.h>

                       ^

compilation terminated.


This happens only when compiling for a generic ESP8266 module. I tried compiling it for the Arduino UNO, and i didn't get that same error. Do any of you people know a workaround for this?

This is what i have:
- Arduino IDE version 1.6.9 (Tried both portable and installed, no difference)
- Tried every single version of the Boards Package available in the Boards Manager.

Do you guys know a possible fix for this?

If you have any questions, feel free to ask me!
User avatar
By nikko4913
#50236 Okay, got it to work!
Turns out that the AVR library isn't necessary. I did, however, get some other errors when removing the #include line, but they weren't related to the AVR libraries missing, at all. They just seemed like it to me, after a long night and me being very tired.

Anyway, thank you for your input :)