0

My script is using both neopixel library to drive LEDS and gi to display UI on raspberry pi . The issue is that neopixel requires me to run it with sudo but then gi throws an error:

No protocol specified Unable to init server: Could not connect: Connection refused

Display on my raspberry pi uses most of the peripherals so I am using bottom ones for LED (GPIO12 and GPIO21). I've tried enabling SPI interface but it doesn't help.

What are the ways to overcome this?

0 Answers0