During debugging for software PWM some jsWarn (in jstimer, function jstPinPWM) have been used.
Looks to me, that 2nd var of same type is always shown as zero.
See attached code, where only sequence of 2 vars is changed:
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.
During debugging for software PWM some jsWarn (in jstimer, function jstPinPWM) have been used.
Looks to me, that 2nd var of same type is always shown as zero.
See attached code, where only sequence of 2 vars is changed:
Result in debug window is:
WARNING: duty:0.5,period:100000,pulse:0
WARNING: duty:0.5,pulse:50000,period:0
Or is %d the wrong format ?