-
Notifications
You must be signed in to change notification settings - Fork 247
Description
A while back I bought several reels of WS2812 lights (aka neopixels). These are little RGB leds that are individually addressable via a single digital wire protocol. I also have a whole box of various ESP8266 boards.
Every Christmas, I flash the esp8266 boards with Espruino, hook them to the house wifi and let him have a ball programming animations over wifi using the IDE that's an app on his chromebook.
If you've not seen this workflow, it's pretty amazing. He simply installs this app on his chromebook and connects to the esp8266 over serial or wifi. He's got a collection of JS starter projects I wrote for him and tweaks them to write new animations.
I was wondering how much work it would be to enable this experience, but using moddable instead of espruino. I want him to start learning modern JavaScript but espruino is a strict subset of ES5.1 with poor debugging capabilities.
Chrome apps can talk to serial devices as well as full access to local TCP or UDP networks. They don't have a C compiler though, it would have to be ported to run in webassembly or something.
Can I build moddable in such a way that it enables sending JS source code over wifi or serial? Also are there any existing drivers for WS2812 protocol? If not, I've written them before in C, it's a fairly simple protocol, just very timing sensitive.
