ESP32C3/codingExamples/flashLed.txt

19 lines
461 B
Plaintext

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.