Nice! That looks great! I wonder whether you could do a string replace on certain emojis, so 💡 could go to LED.set() and similar?
This would actually be really cool for robots - you could connect with the phone, then send commands like 'forward'/'left'/etc or even just the emoji arrows. My son would love it :)
But yes, there's a navigator.bluetooth.getDevices API (iirc) where you can get previously connected devices which you can connect to without the BLE menu, so that could actually be a pretty neat addition. The IDE uses it - I didn't think it was behind a flag but maybe i just turned the flag on and then forgot ;)
But actually talking of Slack, I guess potentially you could have something where you sign in to slack on an old Android phone, connect your Espruino device, and then you can just type @phone turn XYZ on and it'll magically do it when you're at work (I'm not sure if slack has an API or you'd need a bookmarklet though?).
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.
Nice! That looks great! I wonder whether you could do a string replace on certain emojis, so 💡 could go to
LED.set()
and similar?This would actually be really cool for robots - you could connect with the phone, then send commands like 'forward'/'left'/etc or even just the emoji arrows. My son would love it :)
But yes, there's a
navigator.bluetooth.getDevices
API (iirc) where you can get previously connected devices which you can connect to without the BLE menu, so that could actually be a pretty neat addition. The IDE uses it - I didn't think it was behind a flag but maybe i just turned the flag on and then forgot ;)But actually talking of Slack, I guess potentially you could have something where you sign in to slack on an old Android phone, connect your Espruino device, and then you can just type
@phone turn XYZ on
and it'll magically do it when you're at work (I'm not sure if slack has an API or you'd need a bookmarklet though?).