One-liner to flash the LED. It is not on constant LED1 as expected, but instead on output pin D8!


1. Connect to Espruino, using screen.

screen /dev/ttyACM0


2. Press ENTER to flush serial buffer a bit, then enter one-liner.

let n=false; setInterval( () => { digitalWrite("D8",n); n=!n; } , 500);


3. Upon pressing ENTER on the Espruino console you should now see the LED flashing.


Exit screen using: CTRL-A q
Or kill the serial session using: CTRL-A k.
