Hi - looks like you also just posted on GitHub as well? I'll delete that version and answer here.
Which tutorial had the flash function in it? I just looked in the Quick Start and Flashing Lights tutorial and didn't see it...
I just tried digitalPulse(LED1, 1, 500) - copy and pasting exactly what you wrote with a Pico 1v4 with the latest firmware, and it works fine for me.
Is it possible that you ran through tutorials back to back without resetting the board? Some functions that were running in the background with setInterval may have been continually setting the LED to on, meaning digitalPulse didn't work?
For the FAQ, I'll change it - however many different boards are supported. On some like this one, D0 is perfectly valid and works fine.
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.
Hi - looks like you also just posted on GitHub as well? I'll delete that version and answer here.
Which tutorial had the
flash
function in it? I just looked in the Quick Start and Flashing Lights tutorial and didn't see it...I just tried
digitalPulse(LED1, 1, 500)
- copy and pasting exactly what you wrote with a Pico 1v4 with the latest firmware, and it works fine for me.Is it possible that you ran through tutorials back to back without resetting the board? Some functions that were running in the background with setInterval may have been continually setting the LED to on, meaning
digitalPulse
didn't work?For the FAQ, I'll change it - however many different boards are supported. On some like this one,
D0
is perfectly valid and works fine.