I know it's slightly more characters, but LED.set() (then LED.reset()) works, or you can do digitalPulse(LED,1,100)
If you want to pre-load it on your Puck, just do E.setBootCode("function me(){digitalPulse(LED,1,100)}",true) - that code will then always stay on your puck, regardless of resets or other saves
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 know it's slightly more characters, but
LED.set()
(thenLED.reset()
) works, or you can dodigitalPulse(LED,1,100)
If you want to pre-load it on your Puck, just do
E.setBootCode("function me(){digitalPulse(LED,1,100)}",true)
- that code will then always stay on your puck, regardless of resets or other saves