jgarff / rpi_ws281x

Userspace Raspberry Pi PWM library for WS281X LEDs
BSD 2-Clause "Simplified" License
1.76k stars 616 forks source link

Limit of 339 LED when using SPI on RPI4B. #473

Closed Old-Engineer closed 2 years ago

Old-Engineer commented 2 years ago

Hi, While using SPI to drive single string of LEDs I have found a limit of 339 LEDs. Any more results in an error. I need to drive 900. Anyone know how to overcome the limit?

thanks

Gadgetoid commented 2 years ago

Possibly the SPI buffsize. See: https://github.com/jgarff/rpi_ws281x#spi

Old-Engineer commented 2 years ago

Thanks Gadgetoid for the reply. I had already found this detail and entered it into the correct file. After receiving your comment I rechecked the change and found I put a comma in where a space should go between entries. That resulted in the buffer size still being too small. Once corrected it worked a treat. I can now control my string of 900 LEDs. Thanks again.

Gadgetoid commented 2 years ago

I've been there, no worries!