jgarff / rpi_ws281x

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

pigpio interfering with PCM operation #523

Open sam-vdp opened 1 year ago

sam-vdp commented 1 year ago

Posting this mostly in the hope that it maybe helpful for others (I just spent a day diagnosing this):

pigpio by default uses the PCM hardware in a way that breaks rpi_ws281x use of the PCM channel. ws281x will kind of work, but there will be sporadic errors in the data sent to the LEDs. Not sure if ws281x could detect if anything else is using the PCM hardware and raise an error?

As a solution, pigpio can be configured to use PWM hardware instead by using gpioCfgClock