Hi,
Paul answered my question on Github but I'll repost here for posterity. Feel free to add comments if you've dealt with this before, too:
// ---------------------------------------------------
MY QUESTION:
// ---------------------------------------------------
I am simply trying to use the Tlc5940 library with the TimerOne library in the same Arduino sketch (Teensy 3.2, Teensyduino installed on OSX).
My Arduino sketch is as simple as:
The error seems to be about multiple ftm1_isr definitions.
I realize Tlc5940 uses timer1, though I'm not savvy enough to understand how.
Is there a way to use timer1 thru the Tlc library instead of including it as its own library?
Or any other solution, of course, is welcome.
// ---------------------------------------------------
PAUL'S ANSWER:
// ---------------------------------------------------
Use Timer3 or IntervalTimer instead.
Paul answered my question on Github but I'll repost here for posterity. Feel free to add comments if you've dealt with this before, too:
// ---------------------------------------------------
MY QUESTION:
// ---------------------------------------------------
I am simply trying to use the Tlc5940 library with the TimerOne library in the same Arduino sketch (Teensy 3.2, Teensyduino installed on OSX).
My Arduino sketch is as simple as:
Code:
#include "TimerOne.h"
#include "Tlc5940.h"
void setup() {}
void loop() {}
The error seems to be about multiple ftm1_isr definitions.
Code:
/var/folders/31/mc3khzyn4p76dfvl53dqbc5m0000gn/T/arduino_build_830505/libraries/Tlc5940/Tlc5940.cpp.o: In function `ftm1_isr':
/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/Tlc5940/Tlc5940.cpp:76: multiple definition of `ftm1_isr'
/var/folders/31/mc3khzyn4p76dfvl53dqbc5m0000gn/T/arduino_build_830505/libraries/TimerOne/TimerOne.cpp.o:/Applications/Arduino.app/Contents/Java/hardware/teensy/avr/libraries/TimerOne/TimerOne.cpp:35: first defined here
/Applications/Arduino.app/Contents/Java/hardware/tools/arm/bin/../lib/gcc/arm-none-eabi/5.4.1/../../../../arm-none-eabi/bin/ld: Disabling relaxation: it will not work with multiple definitions
collect2: error: ld returned 1 exit status
Error compiling for board Teensy 3.2 / 3.1.
I realize Tlc5940 uses timer1, though I'm not savvy enough to understand how.
Is there a way to use timer1 thru the Tlc library instead of including it as its own library?
Or any other solution, of course, is welcome.
// ---------------------------------------------------
PAUL'S ANSWER:
// ---------------------------------------------------
Use Timer3 or IntervalTimer instead.