Closed jrozner closed 7 years ago
The reason why you're getting an error message is because there's hardware incompatibility. There's no such thing as timer2b on the ATmega64. If you're sending or decoding IR signals, I suggest using Arduino IRremote instead. Much more popular, and dedicated support for ATmega64/128.
I'll take a look at IRemote and see if I can get it working in a similar way. When I looked at it in the past the reason I chose to use IRLib2 was the support for interrupt based receiving since the actual event loop the mcu is running is potentially a bit long and didn't want to miss transmissions. Thanks for explaining why it's not working though, that makes sense.
Not sure if this is an error in IRLib2's ifdefs or in the MegaCore support but when trying to even include in the library for the ATmega64a I run into these errors. I've gone through the IRLibe2 code and checked around for ifdefs that optionally include code for specific avr chips but didn't see anything that didn't have an else block that would skip including these. The define macros listed here all seem to be part of the Arduino framework so I'm confused as to why they wouldn't be included.