{"action":"created","issue":{"url":"https://api.github.com/repos/cnlohr/esp8266ws2812i2s/issues/22","repository_url":"https://api.github.com/repos/cnlohr/esp8266ws2812i2s","labels_url":"https://api.github.com/repos/cnlohr/esp8266ws2812i2s/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/cnlohr/esp8266ws2812i2s/issues/22/comments","events_url":"https://api.github.com/repos/cnlohr/esp8266ws2812i2s/issues/22/events","html_url":"https://github.com/cnlohr/esp8266ws2812i2s/pull/22","id":173676500,"number":22,"title":"Select color for leds and pattern in Web-UI","user":{"login":"con-f-use","id":11145016,"avatar_url":"https://avatars.githubusercontent.com/u/11145016?v=3","gravatar_id":"","url":"https://api.github.com/users/con-f-use","html_url":"https://github.com/con-f-use","followers_url":"https://api.github.com/users/con-f-use/followers","following_url":"https://api.github.com/users/con-f-use/following{/other_user}","gists_url":"https://api.github.com/users/con-f-use/gists{/gist_id}","starred_url":"https://api.github.com/users/con-f-use/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/con-f-use/subscriptions","organizations_url":"https://api.github.com/users/con-f-use/orgs","repos_url":"https://api.github.com/users/con-f-use/repos","events_url":"https://api.github.com/users/con-f-use/events{/privacy}","received_events_url":"https://api.github.com/users/con-f-use/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-29T00:19:55Z","updated_at":"2016-08-29T04:20:27Z","closed_at":"2016-08-29T04:19:06Z","pull_request":{"url":"https://api.github.com/repos/cnlohr/esp8266ws2812i2s/pulls/22","html_url":"https://github.com/cnlohr/esp8266ws2812i2s/pull/22","diff_url":"https://github.com/cnlohr/esp8266ws2812i2s/pull/22.diff","patch_url":"https://github.com/cnlohr/esp8266ws2812i2s/pull/22.patch"},"body":"Make the Web-UI for ws2812 a little more useful. Still buggy and needs testing.\r\n\r\n### Features\r\n\r\n - Users can enter one or many ranges of LEDs, e.g. 1-4,7,20,25,72-103 and select a color for them\r\n - Users can select a pattern, that is displayed continuously (even when not connected to the Web-UI) until a color is selected or data is sent over UDP\r\n\r\n![demo](https://cloud.githubusercontent.com/assets/11145016/18037948/b10a95d8-6d8f-11e6-8712-490b5ff72dd1.png)\r\n\r\n### Bugs\r\n - Some patterns don't work to well yet. Most prominently numbers >17 (the default theme). Should be a timing issues with the `frames` variable\r\n\r\n### ToDo:\r\n - Implement a \"neutral\" color, that just leaves the old color. Currently all led in the entered range are turned off. They should stay as they were. Probably requires an `if` in `ws2812.c`. A \"leave as is\" color could be useful elsewhere, too.\r\n - Test this in different browsers. I managed to transfer binary data over the Web-UI, but I'm not sure how robust the transfer is, especially cross-plattfrom.\r\n - The pattern should be stored in flash, so the esp can operate autonomously, once a pattern is set\r\n\r\n@cnlohr : I would very much like for you to test and improve this. I feel like the timing-stuff could be handled better, but I don't know anything about the esp8266's timers. I'm hesitant to merge it yet,"},"comment":{"url":"https://api.github.com/repos/cnlohr/esp8266ws2812i2s/issues/comments/243029105","html_url":"https://github.com/cnlohr/esp8266ws2812i2s/pull/22#issuecomment-243029105","issue_url":"https://api.github.com/repos/cnlohr/esp8266ws2812i2s/issues/22","id":243029105,"user":{"login":"cnlohr","id":2748168,"avatar_url":"https://avatars.githubusercontent.com/u/2748168?v=3","gravatar_id":"","url":"https://api.github.com/users/cnlohr","html_url":"https://github.com/cnlohr","followers_url":"https://api.github.com/users/cnlohr/followers","following_url":"https://api.github.com/users/cnlohr/following{/other_user}","gists_url":"https://api.github.com/users/cnlohr/gists{/gist_id}","starred_url":"https://api.github.com/users/cnlohr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnlohr/subscriptions","organizations_url":"https://api.github.com/users/cnlohr/orgs","repos_url":"https://api.github.com/users/cnlohr/repos","events_url":"https://api.github.com/users/cnlohr/events{/privacy}","received_events_url":"https://api.github.com/users/cnlohr/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T04:20:27Z","updated_at":"2016-08-29T04:20:27Z","body":"This control is super unintuitive for making specific colors, but, I got your new timer thing in and it works much better.  Now operates at about 100 hz.  Now that I'm thinking about that, that's a little high.  Will change that."}}
{"actor":{"display_login":"cnlohr"}}