Still experimenting with "the bare PICO" and reached some standalone scenario:
I plan to modify the http://www.espruino.com/Single+Button+Combination+Lock
to automatically run as soon as it got power (save(), onInit ...).
The original code uses console.log to show status which I like to keep when managable.
Is there a way to detect that there is no console attached so I can switch to alternative (LED signals)?
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.
Still experimenting with "the bare PICO" and reached some standalone scenario:
I plan to modify the http://www.espruino.com/Single+Button+Combination+Lock
to automatically run as soon as it got power (save(), onInit ...).
The original code uses console.log to show status which I like to keep when managable.
Is there a way to detect that there is no console attached so I can switch to alternative (LED signals)?
TIA, Uli