Hi,
I am currently using a Teensy 3.5 as a basis for a bigger project that includes Audio, SD, IR transmission and reception, screens etc.
When trying to connect the different components, it seems that the IR receiver stopped working for some reason.
I suspect that it might be because of timers that are used by multiple libraries (though I'm just speculating), like the Audio or SD libraries perhaps.
So I want to change the timer in the IRremote library to see if that solves the problem.
However, I'm a bit confused as to what the different timers are named, and where to find an overview of it?
I tried to change the timer in the boarddefs.h from the IRremote library from this:
To this:
Which results in an error:
I've read many places that to use a different timer, you need to "change the timer in IRremoteInt.h" (or boarddefs.h now in the later version) but not what you can change it to.
If anyone can shed some light on what timers are available and their names, it would be greatly appreciated
EDIT: Is there any issues with using the same teensy for both sending and receiving IR signals?
I am currently using a Teensy 3.5 as a basis for a bigger project that includes Audio, SD, IR transmission and reception, screens etc.
When trying to connect the different components, it seems that the IR receiver stopped working for some reason.
I suspect that it might be because of timers that are used by multiple libraries (though I'm just speculating), like the Audio or SD libraries perhaps.
So I want to change the timer in the IRremote library to see if that solves the problem.
However, I'm a bit confused as to what the different timers are named, and where to find an overview of it?
I tried to change the timer in the boarddefs.h from the IRremote library from this:
Code:
// Teensy 3.0 / Teensy 3.1
#elif defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
#define IR_USE_TIMER_CMT // tx = pin 5
To this:
Code:
// Teensy 3.0 / Teensy 3.1
#elif defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
#define IR_USE_TIMER_FTM0 // tx = pin 5
Which results in an error:
Code:
# error "Internal code configuration error, no known IR_USE_TIMER# defined\n"
I've read many places that to use a different timer, you need to "change the timer in IRremoteInt.h" (or boarddefs.h now in the later version) but not what you can change it to.
If anyone can shed some light on what timers are available and their names, it would be greatly appreciated
EDIT: Is there any issues with using the same teensy for both sending and receiving IR signals?
Last edited: