jgarff / rpi_ws281x

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

Must my app run as sudo to use the library? #534

Open davthomaspilot opened 3 months ago

davthomaspilot commented 3 months ago

I'm getting ready to do a bunch of work to avoid running my application as sudo (pigpio bit banging stuff). But, I also need to control LED strips using the ws2811 library. So, maybe I need to include support for ws2811 in a daemon that my app communicates with over a socket (like pigs).

I know on Jessie and Bullseye, I did not need to run as sudo for this ws2811 library. But, answers to a couple of the issues imply that is now required?

davthomaspilot commented 3 months ago

I guess I'll move the code that needs to run as sudo into a different application, then communicate with it over a socket.

Has anyone already done this?