-
• #2
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
-
• #3
Oh, duh.
I was omitting the second argument, and meant that 0.1 to be the time, no wonder it wasn't working.
-
• #4
Glad you got this sorted. I'll look into why it didn't just give you an error - it should do...
It seems that digitalPulse() will give errors on subsequent attempts to call it. It works normally the first time only.
digitalPulse(C7,0.1);
=undefined
digitalPulse(C7,0.1);
INTERNAL ERROR: Timeout on Utility Timer
=undefined
Happens in both v50 and the v51 github version.