rpi-ws281x / rpi-ws281x-python

Python library wrapping for the rpi-ws281x library
BSD 2-Clause "Simplified" License
323 stars 103 forks source link

Multistrand PWM0 and PWM 1 #72

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:

pin 18 (pwm0) pin 12 (pwm0) pin 13 (pwm1) Is that something possible, or I can only use pwm0?

godmar commented 11 months ago

I'm using the following pins on a Raspberry Pi 3b to drive 3 independent strands

This works well. See here.