On a Pico with v1.91 I can do digitalPulse(B3, 1, 0.10, 0.1) to get a short pulse of 0.1ms length, with the pin returning to 0 at the end. I'm expecting the same for digitalPulse(B3, 1, [0.1, 0.1]).
However, when passing the lengths as array the pin state is finally 1.
What am I missing here?
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.
On a Pico with v1.91 I can do
digitalPulse(B3, 1, 0.10, 0.1)
to get a short pulse of 0.1ms length, with the pin returning to 0 at the end. I'm expecting the same fordigitalPulse(B3, 1, [0.1, 0.1])
.However, when passing the lengths as array the pin state is finally 1.
What am I missing here?