Thanks. Ok, so if you want to keep changing the PWM value you'll have to wait until I get around to adding output_opendrain and changing analogWrite.
If you really can't wait, you can poke into the relevant timer's duty cycle register :) Either that or if high frequency is not vital you can use digitalPulse to implement software PWM.
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.
Thanks. Ok, so if you want to keep changing the PWM value you'll have to wait until I get around to adding
output_opendrain
and changing analogWrite.If you really can't wait, you can poke into the relevant timer's duty cycle register :) Either that or if high frequency is not vital you can use
digitalPulse
to implement software PWM.