I'm not sure what the default value is for time or if you want 0.1 to be the time. I believe the second param should either be 1 or 0, nothing in between. Try setting it all params explicitly, like this:
digitalPulse(C7, 1, 100)
And make sure that 100ms pass before running it again. Here is an example where I'm pulsating the led every 2 seconds, check out line 45.
The official reference lists the format as digitalPulse(pin, state, time), where:
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'm not sure what the default value is for time or if you want
0.1
to be the time. I believe the second param should either be1
or0
, nothing in between. Try setting it all params explicitly, like this:digitalPulse(C7, 1, 100)
And make sure that
100
ms pass before running it again. Here is an example where I'm pulsating the led every 2 seconds, check out line 45.The official reference lists the format as
digitalPulse(pin, state, time)
, where:pin
idstate
either 1 or 0 (for high or low)time
in miliseconds