Wow, the telegram bot thing would be cool. I guess there could be a library for Espruino that allowed you to do prompt("Light on?",{buttons:["yes","no"]}).then(result => ... ), and you had some magic that detected what it output and put buttons on the chat dialog?
My son's still at the 'poke the picture' stage, so the easier the better really :)
With the IDE, is there a way to link to it and have it connect to a specified device?
Interestingly no, there isn't! There's already 'upload', and it's smart enough to connect to the emulator:
But having the ability to specify an actual device would be very cool, and a PR would be great! In getPorts there's already the ability to specify a port that the IDE should automatically connect to, so it might be as easy as modifying getPorts in serial.js to check window.location.query and set the relevant field if the name matches :)
Also, we currently only have upload, and not a connect option :)
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.
Wow, the telegram bot thing would be cool. I guess there could be a library for Espruino that allowed you to do
prompt("Light on?",{buttons:["yes","no"]}).then(result => ... )
, and you had some magic that detected what it output and put buttons on the chat dialog?My son's still at the 'poke the picture' stage, so the easier the better really :)
Interestingly no, there isn't! There's already 'upload', and it's smart enough to connect to the emulator:
But having the ability to specify an actual device would be very cool, and a PR would be great! In
getPorts
there's already the ability to specify a port that the IDE should automatically connect to, so it might be as easy as modifyinggetPorts
inserial.js
to checkwindow.location.query
and set the relevant field if the name matches :)Also, we currently only have
upload
, and not aconnect
option :)