FrequencyTimer2 Library and Teensy 4

Status
Not open for further replies.
I don't believe this library has been ported over to the Teensy 4.

The last update to the library appears to be back in 2018 and I don't see any pending Pull Requests to Paul's

Tthe only mention of it in the T4 beta thread was in the thread
posting: https://forum.pjrc.com/threads/54711-Teensy-4-0-First-Beta-Test?p=210727&viewfull=1#post210727

Which said it does not compile.

Don't know what you are trying to do, but to call a function at specific intervals, I would use the IntervalTImer.

If you want some IO pin to pulse, I would probably use one of the hardware pins tied to timers(PWM or QTimer), and use analogWrite.
 
FrequencyTimer2 isn't supported.

If you need a frequency output, use analogWriteFrequency() and analogWrite().

If you need periodic interrupts, use IntervalTimer.

If you need both from the same library, get 1.49-beta4 and use TimerOne or TimerThree. In version 1.48, TimerThree doesn't work at all and TimerOne only works partially, so make sure you're using the latest so you have the working versions of those libs.
 
Status
Not open for further replies.
Back
Top