jgarff / rpi_ws281x

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

Up to 16 strips at once using SMI/DMA?? #434

Open d8ahazard opened 3 years ago

d8ahazard commented 3 years ago

So, I was searching last night to determine if there were any way I could control more than 1/2 strips of LEDs simultaneously.

In doing so, I ran across an article that details how to control up to 16x LED strips simultaneously using the SMI interface of the raspberry pi. It is specifically targeted at WS281x type LED strips, and includes links to source code, an explanation of the packet structure...everything.

https://hackaday.com/2020/10/12/running-way-more-led-strips-on-a-raspberry-pi-with-dma/

Wondering - is it at all possible to implement this in rpi_ws281x? It sounds like this would be an ideal addition to the library.

Honestly, I'd try it myself if I knew anything more about C, but unfortunately, I haven't tried to learn that one yet.

psy0rz commented 3 years ago

Here's my work in progress for a nodejs module, using that principle: https://github.com/psy0rz/rpi-ws281x-smi