Teensy_PWM

This library enables you to use Hardware-based PWM channels on Teensy boards, such as Teensy 2.x, Teensy LC, Teensy 3.x, Teensy 4.x, Teensy MicroMod, etc., to create and output PWM to pins. Using the same functions as other FastPWM libraries to enable you to port PWM code easily between platforms.

Author
Khoi Hoang
Website
https://github.com/khoih-prog/Teensy_PWM
Category
Device Control
License
MIT
Library Type
Contributed
Architectures
Any

The most important feature is they are purely hardware-based PWM channels, supporting very high PWM frequencies. Therefore, their executions are not blocked by bad-behaving functions or tasks. This important feature is absolutely necessary for mission-critical tasks. These hardware-based PWMs, still work even if other software functions are blocking. Moreover, they are much more precise (certainly depending on clock frequency accuracy) than other software-based PWM using ISR, millis() or micros(). That is necessary if you need to control devices requiring high precision. New efficient setPWM_manual function to facilitate waveform creation using PWM

Downloads

Filename Release Date File Size
Teensy_PWM-1.1.1.zip 2023-01-22 55.52 KiB
Teensy_PWM-1.1.0.zip 2022-11-07 53.47 KiB
Teensy_PWM-1.0.0.zip 2022-11-06 52.14 KiB