{"action":"created","issue":{"url":"https://api.github.com/repos/Sh4d/LPD8806/issues/2","repository_url":"https://api.github.com/repos/Sh4d/LPD8806","labels_url":"https://api.github.com/repos/Sh4d/LPD8806/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/Sh4d/LPD8806/issues/2/comments","events_url":"https://api.github.com/repos/Sh4d/LPD8806/issues/2/events","html_url":"https://github.com/Sh4d/LPD8806/issues/2","id":7282524,"number":2,"title":"Colors wrong when setting by RGB values","user":{"login":"adammhaile","id":957162,"avatar_url":"https://avatars.githubusercontent.com/u/957162?v=3","gravatar_id":"","url":"https://api.github.com/users/adammhaile","html_url":"https://github.com/adammhaile","followers_url":"https://api.github.com/users/adammhaile/followers","following_url":"https://api.github.com/users/adammhaile/following{/other_user}","gists_url":"https://api.github.com/users/adammhaile/gists{/gist_id}","starred_url":"https://api.github.com/users/adammhaile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adammhaile/subscriptions","organizations_url":"https://api.github.com/users/adammhaile/orgs","repos_url":"https://api.github.com/users/adammhaile/repos","events_url":"https://api.github.com/users/adammhaile/events{/privacy}","received_events_url":"https://api.github.com/users/adammhaile/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2012-10-02T03:42:36Z","updated_at":"2016-12-11T22:06:32Z","closed_at":"2012-10-02T04:37:24Z","body":"I just picked up some LPD8806 LED strips and hooked them up to my RPi.\nIn the demo, the color wheel works perfectly but when I try to set colors other than Red, Green or Blue individually, the colors output are wrong.\n\nFor example, if I ran through the colors as follows (with updates in between of course):\nled.set(255,0,0)      //red\nled.set(255,127,0)  //orange\nled.set(255,255,0)  //yellow\nled.set(0,255,0)      //green\nled.set(0,0,255)      //blue\nled.set(111,0,255)  //indigo\nled.set(143,0,255)  //violet\n\nI end up getting something more like; red, pink, violet, blue, green, yellow.\nIt's almost (but not quite) in perfect reverse order.\n\nLike I said, the color wheel works perfectly and if I, for example, enabled only 7 LEDs, it would be in perfect rainbow order. But that code seems to be calculation the values differently.\n\nEither way, it seems like somehow the individual RGB values are not getting set quite right.\n\nAny thoughts?\n"},"comment":{"url":"https://api.github.com/repos/Sh4d/LPD8806/issues/comments/266311772","html_url":"https://github.com/Sh4d/LPD8806/issues/2#issuecomment-266311772","issue_url":"https://api.github.com/repos/Sh4d/LPD8806/issues/2","id":266311772,"user":{"login":"zpeleg","id":3458580,"avatar_url":"https://avatars.githubusercontent.com/u/3458580?v=3","gravatar_id":"","url":"https://api.github.com/users/zpeleg","html_url":"https://github.com/zpeleg","followers_url":"https://api.github.com/users/zpeleg/followers","following_url":"https://api.github.com/users/zpeleg/following{/other_user}","gists_url":"https://api.github.com/users/zpeleg/gists{/gist_id}","starred_url":"https://api.github.com/users/zpeleg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zpeleg/subscriptions","organizations_url":"https://api.github.com/users/zpeleg/orgs","repos_url":"https://api.github.com/users/zpeleg/repos","events_url":"https://api.github.com/users/zpeleg/events{/privacy}","received_events_url":"https://api.github.com/users/zpeleg/received_events","type":"User","site_admin":false},"created_at":"2016-12-11T22:06:32Z","updated_at":"2016-12-11T22:06:32Z","body":"To anyone coming here now and wondering what the hell is that code that tekket wrote earlier, there's a better way now. Look at the RGB calibrate example.\r\nhttps://github.com/FastLED/FastLED/wiki/Rgb-calibration\r\n"}}
{"actor":{"display_login":"zpeleg"}}