Today I’m making available the first “complete” version of the software-based pulse-width-modulation library I’ve been working on for a few weeks for use in my upcoming Teensy 2.0 projects. Key features include high-frequency PWM, and the ability to apply independent PWM to all output capable pins on the Teensy. It is not thoroughly tested, so there may be some bugs or otherwise undesirable behavior. I only have a Teensy 2.0 to work with, so if someone would like to try it out on other Teensy variations and give me some feedback it would be greatly appreciated. For now you can download version 0.1 Alpha from here, or on GitHub (as well as current and potentially unstable code).

Download Teensy_sPWM_v0.1.zip
Get the code on GitHub