Hello.
I am trying to use IRLib2 on a XIAO nRF52840 sense. I get, among others, the following compilation errors:
\Seeed_Arduino_IR\IRLibHardware.h:301:4: error: ‘TCCR2A’ was not declared in this scope
301 | TCCR2A = _BV(WGM21); TCCR2B = _BV(CS21);
\Seeed_Arduino_IR\IRLibHardware.h:301:17: error: ‘WGM21’ was not declared in this scope
301 | TCCR2A = _BV(WGM21); TCCR2B = _BV(CS21);
\Seeed_Arduino_IR\IRLibHardware.h:301:13: error: ‘_BV’ was not declared in this scope
301 | TCCR2A = _BV(WGM21); TCCR2B = _BV(CS21); \
All the other errors are similar and related to things not declared in the scope. This code was working properly on an arduino M0 pro and the original IRLib2 library, I tried using the seeed_Arduino_IR library instead but it gives me the same errors. I’m not very knowledgeable but I’m guessing that some device-specific definitions are missing. Is there an easy way to use this library with the XIAO nRF52840 sense, ideally that does not require a high level of expertise?
Thanks.