{"action":"created","issue":{"url":"https://api.github.com/repos/JeanPierreFig/SunRiseLamp/issues/3","repository_url":"https://api.github.com/repos/JeanPierreFig/SunRiseLamp","labels_url":"https://api.github.com/repos/JeanPierreFig/SunRiseLamp/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/JeanPierreFig/SunRiseLamp/issues/3/comments","events_url":"https://api.github.com/repos/JeanPierreFig/SunRiseLamp/issues/3/events","html_url":"https://github.com/JeanPierreFig/SunRiseLamp/pull/3","id":182188048,"number":3,"title":"Code cleanup and simplification","user":{"login":"fredrike","id":676999,"avatar_url":"https://avatars.githubusercontent.com/u/676999?v=3","gravatar_id":"","url":"https://api.github.com/users/fredrike","html_url":"https://github.com/fredrike","followers_url":"https://api.github.com/users/fredrike/followers","following_url":"https://api.github.com/users/fredrike/following{/other_user}","gists_url":"https://api.github.com/users/fredrike/gists{/gist_id}","starred_url":"https://api.github.com/users/fredrike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredrike/subscriptions","organizations_url":"https://api.github.com/users/fredrike/orgs","repos_url":"https://api.github.com/users/fredrike/repos","events_url":"https://api.github.com/users/fredrike/events{/privacy}","received_events_url":"https://api.github.com/users/fredrike/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JeanPierreFig/SunRiseLamp/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-11T07:02:01Z","updated_at":"2016-10-14T06:05:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JeanPierreFig/SunRiseLamp/pulls/3","html_url":"https://github.com/JeanPierreFig/SunRiseLamp/pull/3","diff_url":"https://github.com/JeanPierreFig/SunRiseLamp/pull/3.diff","patch_url":"https://github.com/JeanPierreFig/SunRiseLamp/pull/3.patch"},"body":"I'm the kind of guy that likes shorter code, as it is generally easier to read. Have modified the code to make it clearer what it does.\r\n\r\nThe `kelvinToRGB(int)` have been changed so it returns an `uint32_t` that can be used directly by the NeoPixel code [`setPixelColor(uint16_t n, uint32_t c)`][1], getting rid of the `r, g, b` integers.\r\n\r\n\r\n[1]: https://github.com/technobly/SparkCore-NeoPixel/blob/master/firmware/neopixel.h#L81"},"comment":{"url":"https://api.github.com/repos/JeanPierreFig/SunRiseLamp/issues/comments/253717209","html_url":"https://github.com/JeanPierreFig/SunRiseLamp/pull/3#issuecomment-253717209","issue_url":"https://api.github.com/repos/JeanPierreFig/SunRiseLamp/issues/3","id":253717209,"user":{"login":"fredrike","id":676999,"avatar_url":"https://avatars.githubusercontent.com/u/676999?v=3","gravatar_id":"","url":"https://api.github.com/users/fredrike","html_url":"https://github.com/fredrike","followers_url":"https://api.github.com/users/fredrike/followers","following_url":"https://api.github.com/users/fredrike/following{/other_user}","gists_url":"https://api.github.com/users/fredrike/gists{/gist_id}","starred_url":"https://api.github.com/users/fredrike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredrike/subscriptions","organizations_url":"https://api.github.com/users/fredrike/orgs","repos_url":"https://api.github.com/users/fredrike/repos","events_url":"https://api.github.com/users/fredrike/events{/privacy}","received_events_url":"https://api.github.com/users/fredrike/received_events","type":"User","site_admin":false},"created_at":"2016-10-14T06:05:26Z","updated_at":"2016-10-14T06:05:26Z","body":"Just verified my code and found a minor error. The commit 7230fbf is updated with the correct code.\r\n\r\nWould highly appreciate if this could be merged as I have another commit based on this one."}}
{"actor":{"display_login":"fredrike"}}