unexpected behaviour of digitalPulse #689
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 2 comments
-
Posted at 2017-02-18 by @gfwilliams
When you pass an array, you're passing |
Beta Was this translation helpful? Give feedback.
0 replies
-
Posted at 2017-02-18 by Steffen Definitely, yes. Thanks for the explanation :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-02-18 by Steffen
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?
Beta Was this translation helpful? Give feedback.
All reactions