From aca023e4195f4741bba59edf3f05a2ab40fdf224 Mon Sep 17 00:00:00 2001 From: Agent725 Date: Sat, 8 Nov 2025 18:19:13 +0100 Subject: [PATCH] example on how to flash the LED using Espruino --- codingExamples/flashLed.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 codingExamples/flashLed.txt diff --git a/codingExamples/flashLed.txt b/codingExamples/flashLed.txt new file mode 100644 index 0000000..9454cbb --- /dev/null +++ b/codingExamples/flashLed.txt @@ -0,0 +1,18 @@ +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.