I would do it on a pin per pin basis. If it supports hardware then use it to its limits. If the pin can only do software pwm then allow only a specific freq range. If parameters are outside the limits then throw an error.
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.
I would do it on a pin per pin basis. If it supports hardware then use it to its limits. If the pin can only do software pwm then allow only a specific freq range. If parameters are outside the limits then throw an error.
IMO