jgarff / rpi_ws281x

Userspace Raspberry Pi PWM library for WS281X LEDs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multistrand

MaxThom opened this issue · comments

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:

  • pin 18 (pwm0)
  • pin 12 (pwm0)
  • pin 13 (pwm1)

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

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: #434