is there a way to detect my PICO is connected to console/Web IDE? #517
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 2 comments
-
Posted at 2015-12-18 by @gfwilliams You can check However it has no way to know if you have an application running on the PC that is looking at what it is printing! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Posted at 2015-12-18 by UliMerkel @gordon: Thanks for your info; so I have not overlooked a useable functionality in the references. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-12-18 by UliMerkel
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
Beta Was this translation helpful? Give feedback.
All reactions