{"action":"created","issue":{"url":"https://api.github.com/repos/Moddable-OpenSource/moddable/issues/102","repository_url":"https://api.github.com/repos/Moddable-OpenSource/moddable","labels_url":"https://api.github.com/repos/Moddable-OpenSource/moddable/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/Moddable-OpenSource/moddable/issues/102/comments","events_url":"https://api.github.com/repos/Moddable-OpenSource/moddable/issues/102/events","html_url":"https://github.com/Moddable-OpenSource/moddable/issues/102","id":379244198,"node_id":"MDU6SXNzdWUzNzkyNDQxOTg=","number":102,"title":"Chromebook and Christmas Lights","user":{"login":"creationix","id":89353,"node_id":"MDQ6VXNlcjg5MzUz","avatar_url":"https://avatars3.githubusercontent.com/u/89353?v=4","gravatar_id":"","url":"https://api.github.com/users/creationix","html_url":"https://github.com/creationix","followers_url":"https://api.github.com/users/creationix/followers","following_url":"https://api.github.com/users/creationix/following{/other_user}","gists_url":"https://api.github.com/users/creationix/gists{/gist_id}","starred_url":"https://api.github.com/users/creationix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creationix/subscriptions","organizations_url":"https://api.github.com/users/creationix/orgs","repos_url":"https://api.github.com/users/creationix/repos","events_url":"https://api.github.com/users/creationix/events{/privacy}","received_events_url":"https://api.github.com/users/creationix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-09T17:02:44Z","updated_at":"2018-11-09T21:50:21Z","closed_at":null,"author_association":"NONE","body":"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.\r\n\r\nEvery 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.\r\n\r\nIf you've not seen this workflow, it's pretty amazing.  He simply installs this [app](https://chrome.google.com/webstore/detail/espruino-web-ide/bleoifhkdalbjfbobjackfdifdneehpo) 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.\r\n\r\n![image](https://user-images.githubusercontent.com/89353/48276825-9711c780-e40e-11e8-82ac-12b944528096.png)\r\n\r\nI 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.\r\n\r\nChrome 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.\r\n\r\nCan 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."},"comment":{"url":"https://api.github.com/repos/Moddable-OpenSource/moddable/issues/comments/437505960","html_url":"https://github.com/Moddable-OpenSource/moddable/issues/102#issuecomment-437505960","issue_url":"https://api.github.com/repos/Moddable-OpenSource/moddable/issues/102","id":437505960,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzUwNTk2MA==","user":{"login":"phoddie","id":6856458,"node_id":"MDQ6VXNlcjY4NTY0NTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6856458?v=4","gravatar_id":"","url":"https://api.github.com/users/phoddie","html_url":"https://github.com/phoddie","followers_url":"https://api.github.com/users/phoddie/followers","following_url":"https://api.github.com/users/phoddie/following{/other_user}","gists_url":"https://api.github.com/users/phoddie/gists{/gist_id}","starred_url":"https://api.github.com/users/phoddie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phoddie/subscriptions","organizations_url":"https://api.github.com/users/phoddie/orgs","repos_url":"https://api.github.com/users/phoddie/repos","events_url":"https://api.github.com/users/phoddie/events{/privacy}","received_events_url":"https://api.github.com/users/phoddie/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T21:50:21Z","updated_at":"2018-11-09T21:50:21Z","author_association":"COLLABORATOR","body":"@bfriedkin reminds me that we do have a [serial BLE example](https://github.com/Moddable-OpenSource/moddable/blob/public/examples/network/ble/ble-friend/main.js) that works with the [Adafruit BLEFriend](https://github.com/Moddable-OpenSource/moddable/blob/public/examples/network/ble/ble-friend/main.js). The speed may be too slow for reasonable use though. A Classic BLE serial connection might be more appropriate."}}
{"actor":{"display_login":"phoddie"}}