{"action":"created","issue":{"url":"https://api.github.com/repos/adafruit/Adafruit_DotStar_Pi/issues/10","repository_url":"https://api.github.com/repos/adafruit/Adafruit_DotStar_Pi","labels_url":"https://api.github.com/repos/adafruit/Adafruit_DotStar_Pi/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/adafruit/Adafruit_DotStar_Pi/issues/10/comments","events_url":"https://api.github.com/repos/adafruit/Adafruit_DotStar_Pi/issues/10/events","html_url":"https://github.com/adafruit/Adafruit_DotStar_Pi/issues/10","id":116991130,"number":10,"title":"Limit number of pixels to BLOCK_SIZE and/or spidev.bufsize","user":{"login":"fieldOfView","id":143551,"avatar_url":"https://avatars.githubusercontent.com/u/143551?v=3","gravatar_id":"","url":"https://api.github.com/users/fieldOfView","html_url":"https://github.com/fieldOfView","followers_url":"https://api.github.com/users/fieldOfView/followers","following_url":"https://api.github.com/users/fieldOfView/following{/other_user}","gists_url":"https://api.github.com/users/fieldOfView/gists{/gist_id}","starred_url":"https://api.github.com/users/fieldOfView/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fieldOfView/subscriptions","organizations_url":"https://api.github.com/users/fieldOfView/orgs","repos_url":"https://api.github.com/users/fieldOfView/repos","events_url":"https://api.github.com/users/fieldOfView/events{/privacy}","received_events_url":"https://api.github.com/users/fieldOfView/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-15T12:50:47Z","updated_at":"2016-02-18T17:22:24Z","closed_at":null,"body":"With the default config, the hardware spi device can only send 4096 bytes at a time. This becomes a problem if you want to control >1000 LEDs (as each LED takes up 4 bytes). Software SPI is similarly limited by the BLOCK_SIZE define. The constructor should probably check against those limits.\r\n\r\nNote that it is possible to increase the hardware spi device buffersize to eg 8192 (enabling up to ~2000 LEDs):\r\nhttps://www.raspberrypi.org/forums/viewtopic.php?p=837140#p837140 (newer kernels/RPI2)\r\nhttps://www.raspberrypi.org/forums/viewtopic.php?p=309582#p309582 (older kernels)"},"comment":{"url":"https://api.github.com/repos/adafruit/Adafruit_DotStar_Pi/issues/comments/185823799","html_url":"https://github.com/adafruit/Adafruit_DotStar_Pi/issues/10#issuecomment-185823799","issue_url":"https://api.github.com/repos/adafruit/Adafruit_DotStar_Pi/issues/10","id":185823799,"user":{"login":"tibbon","id":82880,"avatar_url":"https://avatars.githubusercontent.com/u/82880?v=3","gravatar_id":"","url":"https://api.github.com/users/tibbon","html_url":"https://github.com/tibbon","followers_url":"https://api.github.com/users/tibbon/followers","following_url":"https://api.github.com/users/tibbon/following{/other_user}","gists_url":"https://api.github.com/users/tibbon/gists{/gist_id}","starred_url":"https://api.github.com/users/tibbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tibbon/subscriptions","organizations_url":"https://api.github.com/users/tibbon/orgs","repos_url":"https://api.github.com/users/tibbon/repos","events_url":"https://api.github.com/users/tibbon/events{/privacy}","received_events_url":"https://api.github.com/users/tibbon/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T17:22:24Z","updated_at":"2016-02-18T17:22:24Z","body":"Thoughts on how to work around this? I need to address around 20,000 pixels. "}}