Re: "'TIMER_ENABLE_PWM' was not declared in this scope"
Posted: Sun Dec 06, 2020 1:47 am
I have success now with version 2.5.0. I had mistakenly made this edit:
as I saw in a post of yours that I has missed somehow. HOWEVER, it only worked after I also commented out the #error statement, making it
on 2.5.0 instead of this edit:/*********************
* ARDUINO Boards
*********************/
// Arduino Duemilanove, Diecimila, LilyPad, Mini, Fio, Nano, etc
// ATmega48, ATmega88, ATmega168, ATmega328
#elif defined(__AVR_ATmega328P__) || defined(__AVR_ATmega168__) // old default clause
# if !defined(IR_USE_TIMER1) && !defined(IR_USE_TIMER2)
#define IR_USE_TIMER1 // tx = pin 9
//#define IR_USE_TIMER2 // tx = pin 3
# endif
(un-commenting IR_USE_TIMER1)#else
// Arduino Duemilanove, Diecimila, LilyPad, Mini, Fio, Nano, etc
// ATmega48, ATmega88, ATmega168, ATmega328
#define IR_USE_TIMER1 // tx = pin 9
#error Board could not be identified from pre-processor symbols. Please extend IRremoteBoardDefs.h.
#endif
as I saw in a post of yours that I has missed somehow. HOWEVER, it only worked after I also commented out the #error statement, making it
I also had to undo the first edit before it would compile.#else
// Arduino Duemilanove, Diecimila, LilyPad, Mini, Fio, Nano, etc
// ATmega48, ATmega88, ATmega168, ATmega328
#define IR_USE_TIMER1 // tx = pin 9
//#error Board could not be identified from pre-processor symbols. Please extend IRremoteBoardDefs.h.
#endif