eabredder / Bose-Cinemate-Arduino-Remote

Bose Cinemate (Series I) Arduino Remote
4 stars 1 forks source link

Arduino\libraries\Arduino-IRremote\IRremote.cpp:21:27: fatal error: avr/interrupt.h: No such file or directory #include <avr/interrupt.h> #1

Open mrlightsman opened 4 years ago

mrlightsman commented 4 years ago

I am trying to compile the IR example using an ESP8266-01 and Bose (NEC) codes. I get the following error:

Arduino\libraries\Arduino-IRremote\IRremote.cpp:21:27: fatal error: avr/interrupt.h: No such file or directory

include <avr/interrupt.h>

Is there a way around this? I simply need to use the NEC power code to turn on/off a Bose Cinemate series 1.

Thanks.

eabredder commented 4 years ago

I am guessing this is a library for avr chips not the esp8266. There are other IR libraries that are built for ESP8266 that properly utilize the interrupts. Like this: https://github.com/crankyoldgit/IRremoteESP8266 - it means that the code will look different since I used avr specific libraries using a reguar arduino uno 328

eabredder commented 4 years ago

The NEC codes won't change of course so that work is done for you!