Sorry for the large number of posts from myself, I know it doesn't really help solve the original issue but I just want to document as much as I can in case someone else stumbles upon this thread from search or somewhere else and are struggling to solve the same problem as me...
While I am completely stumped as to how to get audio to output to the Bluetooth speaker while operating as sudo, there is one workaround to get the NeoPixels to work without needing sudo.
https://pypi.org/project/adafruit-circu ... -neopixel/ In the adafruit-circuitpython-neopixel documentation, they do list out a way to operate the NeoPixels without using sudo by switching on SPI and using GPIO 10.
I was wary about this solution, as several users here had already tried it before and noted that the NeoPixels behaved erratically: https://raspberrypi.stackexchange.com/q ... thout-sudo
Having tried it myself, I seem to have run into the same type of erraticism. The audio now does play alongside the NeoPixels lighting up and switching as shown in the above code, but the lights are not always correct. Often times, it's pure white instead of the pre-programmed color, while after a few refreshes and button presses, it goes to being the right color before displaying pure white again. I would say it works for some colors, but not for others. I haven't quite wrapped my head around as to why this is.
While I am completely stumped as to how to get audio to output to the Bluetooth speaker while operating as sudo, there is one workaround to get the NeoPixels to work without needing sudo.
https://pypi.org/project/adafruit-circu ... -neopixel/ In the adafruit-circuitpython-neopixel documentation, they do list out a way to operate the NeoPixels without using sudo by switching on SPI and using GPIO 10.
I was wary about this solution, as several users here had already tried it before and noted that the NeoPixels behaved erratically: https://raspberrypi.stackexchange.com/q ... thout-sudo
Having tried it myself, I seem to have run into the same type of erraticism. The audio now does play alongside the NeoPixels lighting up and switching as shown in the above code, but the lights are not always correct. Often times, it's pure white instead of the pre-programmed color, while after a few refreshes and button presses, it goes to being the right color before displaying pure white again. I would say it works for some colors, but not for others. I haven't quite wrapped my head around as to why this is.
Statistics: Posted by buttmunky — Fri May 03, 2024 9:49 am