This is cool stuff. The timers in modern microcontrollers have so much capability - but they usually just get used for PWM and everything else gets forgotten about.
I like how you're starting to wrap this into reusable code. Are you planning to make them into modules?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
This is cool stuff. The timers in modern microcontrollers have so much capability - but they usually just get used for PWM and everything else gets forgotten about.
I like how you're starting to wrap this into reusable code. Are you planning to make them into modules?