jgarff / rpi_ws281x

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

Multistrand #471

Open MaxThom opened 3 years ago

MaxThom commented 3 years ago

Hey thanks for this amazing serie of repos! I'm using the rpi4 to drive 9 LED panels for a total of 2403 LEDs. Everything is working great except the refresh rate for leds is really slow (10 refresh per sec). Since I have 9 panels, I want to divide the data into 3 pins, 3 panels each. Right now, I initialize the strip on pin 18 (pwm0). I'm a bit new to wiring and gpios and im wondering if I can use others pins to have 3 instances of the ledstrip object on different pins. For example:

Is that something possible, or I can only use pwm0?

Gadgetoid commented 2 years ago

IIRC you can only use one output per PWM channel. You might need to investigate using SPI or PCM, too.

Or potentially look into the - albeit not as neatly packaged and good to go - SMI/DMA solution discussed here: https://github.com/jgarff/rpi_ws281x/issues/434