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:
C:\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!