{"action":"created","issue":{"url":"https://api.github.com/repos/adafruit/Adafruit_DotStar_Pi/issues/5","labels_url":"https://api.github.com/repos/adafruit/Adafruit_DotStar_Pi/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/Adafruit_DotStar_Pi/issues/5/comments","events_url":"https://api.github.com/repos/adafruit/Adafruit_DotStar_Pi/issues/5/events","html_url":"https://github.com/adafruit/Adafruit_DotStar_Pi/issues/5","id":59482095,"number":5,"title":"dotstar.c 'footer' value results in spurious LED illumination when strip is > numLEDs","user":{"login":"dtiller","id":3858971,"avatar_url":"https://avatars.githubusercontent.com/u/3858971?v=3","gravatar_id":"","url":"https://api.github.com/users/dtiller","html_url":"https://github.com/dtiller","followers_url":"https://api.github.com/users/dtiller/followers","following_url":"https://api.github.com/users/dtiller/following{/other_user}","gists_url":"https://api.github.com/users/dtiller/gists{/gist_id}","starred_url":"https://api.github.com/users/dtiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtiller/subscriptions","organizations_url":"https://api.github.com/users/dtiller/orgs","repos_url":"https://api.github.com/users/dtiller/repos","events_url":"https://api.github.com/users/dtiller/events{/privacy}","received_events_url":"https://api.github.com/users/dtiller/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-02T13:41:09Z","updated_at":"2015-03-30T05:26:42Z","closed_at":null,"body":"The C file 'dotstar.c' uses 0xFFFFFFFF for the footer value, but using that value results in the numLEDs + 1 LED to be illuminated bright white. According to the blog linked below, the footer is used to clock out data since the clock is delayed at each LED. The data value is not important, and will be pushed 'off the end' of a strip of exactly numLEDs LEDs. When you have a longer strip, that data value will be used for the numLEDs +1 LED (the value starts with '111' which signals an LED frame).\r\n\r\nAlso, if there are > 64 LEDs, a single 32 bit footer is not sufficient to correctly push out the remaining data. Please change the footer to be 32 * ((numLEDs - 1) div 64 + 1) ZERO bits long.\r\n\r\nThe blog post: https://cpldcpu.wordpress.com/2014/11/30/understanding-the-apa102-superled/"},"comment":{"url":"https://api.github.com/repos/adafruit/Adafruit_DotStar_Pi/issues/comments/87552479","html_url":"https://github.com/adafruit/Adafruit_DotStar_Pi/issues/5#issuecomment-87552479","issue_url":"https://api.github.com/repos/adafruit/Adafruit_DotStar_Pi/issues/5","id":87552479,"user":{"login":"netsgnut","id":284779,"avatar_url":"https://avatars.githubusercontent.com/u/284779?v=3","gravatar_id":"","url":"https://api.github.com/users/netsgnut","html_url":"https://github.com/netsgnut","followers_url":"https://api.github.com/users/netsgnut/followers","following_url":"https://api.github.com/users/netsgnut/following{/other_user}","gists_url":"https://api.github.com/users/netsgnut/gists{/gist_id}","starred_url":"https://api.github.com/users/netsgnut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netsgnut/subscriptions","organizations_url":"https://api.github.com/users/netsgnut/orgs","repos_url":"https://api.github.com/users/netsgnut/repos","events_url":"https://api.github.com/users/netsgnut/events{/privacy}","received_events_url":"https://api.github.com/users/netsgnut/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T05:26:42Z","updated_at":"2015-03-30T05:26:42Z","body":"Thanks for the tip @dtiller, I have got my strip (of 288 units) a few days back and observed the LED to be illuminating erroneously as described. Before it is fixed I'd better modify my local version to use a longer footer instead."}}