{"action":"created","issue":{"url":"https://api.github.com/repos/frizzby/esp8266-rgb-led/issues/3","repository_url":"https://api.github.com/repos/frizzby/esp8266-rgb-led","labels_url":"https://api.github.com/repos/frizzby/esp8266-rgb-led/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/frizzby/esp8266-rgb-led/issues/3/comments","events_url":"https://api.github.com/repos/frizzby/esp8266-rgb-led/issues/3/events","html_url":"https://github.com/frizzby/esp8266-rgb-led/issues/3","id":131352556,"number":3,"title":"Ws2812b support","user":{"login":"deennoo","id":9532206,"avatar_url":"https://avatars.githubusercontent.com/u/9532206?v=3","gravatar_id":"","url":"https://api.github.com/users/deennoo","html_url":"https://github.com/deennoo","followers_url":"https://api.github.com/users/deennoo/followers","following_url":"https://api.github.com/users/deennoo/following{/other_user}","gists_url":"https://api.github.com/users/deennoo/gists{/gist_id}","starred_url":"https://api.github.com/users/deennoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deennoo/subscriptions","organizations_url":"https://api.github.com/users/deennoo/orgs","repos_url":"https://api.github.com/users/deennoo/repos","events_url":"https://api.github.com/users/deennoo/events{/privacy}","received_events_url":"https://api.github.com/users/deennoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-04T13:44:28Z","updated_at":"2016-02-10T11:47:59Z","closed_at":null,"body":"Hi there, \r\n\r\nThanks for your work.\r\n\r\nI try it and it run well !\r\n\r\nI wondering if it can be modified for ws2812b led strip ? If yes which part of milight.lua have to be change ?\r\n\r\nThx"},"comment":{"url":"https://api.github.com/repos/frizzby/esp8266-rgb-led/issues/comments/182328536","html_url":"https://github.com/frizzby/esp8266-rgb-led/issues/3#issuecomment-182328536","issue_url":"https://api.github.com/repos/frizzby/esp8266-rgb-led/issues/3","id":182328536,"user":{"login":"frizzby","id":1830878,"avatar_url":"https://avatars.githubusercontent.com/u/1830878?v=3","gravatar_id":"","url":"https://api.github.com/users/frizzby","html_url":"https://github.com/frizzby","followers_url":"https://api.github.com/users/frizzby/followers","following_url":"https://api.github.com/users/frizzby/following{/other_user}","gists_url":"https://api.github.com/users/frizzby/gists{/gist_id}","starred_url":"https://api.github.com/users/frizzby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frizzby/subscriptions","organizations_url":"https://api.github.com/users/frizzby/orgs","repos_url":"https://api.github.com/users/frizzby/repos","events_url":"https://api.github.com/users/frizzby/events{/privacy}","received_events_url":"https://api.github.com/users/frizzby/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T11:47:59Z","updated_at":"2016-02-10T11:47:59Z","body":"well, i have no exp with ws2812, but if i understood you correctly, it would be something like:\r\n```lua\r\nif act then\r\n    r, g, b = hslToRgb(current_hue, current_sat, current_lum)\r\n    leds_grb = string.char(g, r, b)\r\n    ws2812.write(2, leds_grb:rep(x))\r\nend\r\n```\r\n\r\nbtw, here are some nice examples https://github.com/geekscape/nodemcu_esp8266/blob/master/examples/ws2812.lua\r\n "}}