Hello everyone,
I'm trying to get the IRremote library to work on a teensy 3.0, but the examples provided with that library will not compile using Teensy 3.0 Beta 9/10 Software.
Neither Paul Stoffregen's version, nor newer versions from Ken Shirriff's github work. I just get an error like this (trying to compile the IRrecord example):
When I try the same example on an Arduino Duemilanove (ATmega328) using Arduino IDE 1.03 everything works as expected.
I'm pretty new to this whole microcontroller programming thing and whilst having done some simple projects on Arduino, I don't pretend to fully grasp what's going on behind the scenes of the Arduino IDE and what requirements have to be satisfied for a given program sketch to be ported from arduino to teensy 3 successfully. That being said, my guess here is that the IRremote library lacks a teensy 3.0 compatible "interrupt routine" (?) as is given for other *duino boards in the file IRremoteInt.h
If someone more knowledgeable could point me in the right direction and elaborate a little on what would have to be done to port the IRremote library to teensy 3, that would really be much appreciated. Thank you!
I'm trying to get the IRremote library to work on a teensy 3.0, but the examples provided with that library will not compile using Teensy 3.0 Beta 9/10 Software.
Neither Paul Stoffregen's version, nor newer versions from Ken Shirriff's github work. I just get an error like this (trying to compile the IRrecord example):
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp: In member function 'void IRsend::mark(int)':
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:174: error: 'TCCR2A' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:174: error: 'COM2B1' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp: In member function 'void IRsend::space(int)':
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:182: error: 'TCCR2A' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:182: error: 'COM2B1' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp: In member function 'void IRsend::enableIROut(int)':
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:200: error: 'TIMSK2' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:210: error: 'TCCR2A' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:210: error: 'WGM20' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:210: error: 'TCCR2B' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:210: error: 'WGM22' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:210: error: 'CS20' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:210: error: 'OCR2A' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:210: error: 'OCR2B' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp: In member function 'void IRrecv::enableIRIn()':
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:226: error: 'TCCR2A' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:226: error: 'WGM21' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:226: error: 'TCCR2B' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:226: error: 'CS21' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:226: error: 'OCR2A' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:226: error: 'TCNT2' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:229: error: 'TIMSK2' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:229: error: 'OCIE2A' was not declared in this scope
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp: At global scope:
/home/ghost/sketchbook/libraries/IRremote/IRremote.cpp:258: error: expected constructor, destructor, or type conversion before '(' token
When I try the same example on an Arduino Duemilanove (ATmega328) using Arduino IDE 1.03 everything works as expected.
I'm pretty new to this whole microcontroller programming thing and whilst having done some simple projects on Arduino, I don't pretend to fully grasp what's going on behind the scenes of the Arduino IDE and what requirements have to be satisfied for a given program sketch to be ported from arduino to teensy 3 successfully. That being said, my guess here is that the IRremote library lacks a teensy 3.0 compatible "interrupt routine" (?) as is given for other *duino boards in the file IRremoteInt.h
If someone more knowledgeable could point me in the right direction and elaborate a little on what would have to be done to port the IRremote library to teensy 3, that would really be much appreciated. Thank you!