Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By rocketshoe
#65000 I'm using ds18b20 temperature sensor and using onewire library to send temperature reading to thingspeak.

I've facing this problem where when I upload my code and it came out this error.

C:\Users\Documents\Arduino\libraries\OneWire\OneWire.cpp:69:20: fatal error: avr/io.h: No such file or directory

#include <avr/io.h>

^

compilation terminated.

exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).

I read in some forum they say i should change the io.h file to an older version of arduino IDE but it doesnt work for me.
But apparently it works if i change my board setting to Arduino Uno. but not with nodemcu board.
Help me with this please.