PaulStoffregen / TimerOne

TimerOne Library with optimization and expanded hardware support
http://www.pjrc.com/teensy/td_libs_TimerOne.html
470 stars 209 forks source link

change void to TimerOne& #47

Open NitrofMtl opened 3 years ago

NitrofMtl commented 3 years ago

-move code into scr\ folder

-rename example to .ino

-add setFrequency to set by frequency instead of period

-change initialize, attachInterrupt and setFrequency function to TimerOne&, so can call into one line

Note: not tested on Teensy

Question: not much info about control function usage. Should the be TimerOne reference to or the are use always alone anyway...