jgarff / rpi_ws281x

Userspace Raspberry Pi PWM library for WS281X LEDs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pigpio interfering with PCM operation

sam-vdp opened this issue · comments

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