For pimoroni pirate audio device users - python code to unleash the power of your hat

@AxLED

volumio@ohc-speaker:~$ python test_gpio.py
buttons.py - Detect which button has been pressed
This example should demonstrate how to:
1. set up RPi.GPIO to read buttons,
2. determine which button has been pressed
Press Ctrl+C to exit!

Button press detected on pin: 6 label: B
Button press detected on pin: 5 label: A
Button press detected on pin: 16 label: X
initalisiere Shutdown

The Y button didn’t detect/show anything, no matter what order. I even reboot and tried again.
The button does work. I confirmed using the Mopidy build I had before and I tested it with another SD card.

I replaced my userconfig.txt with yours, rebooted, re-enabled the pirateaudio plugin. no dice. Y still doesn’t work. Eagerly looking forward to a solution! and perhaps I might fiddle with putting the back light on a timer or a timeout… but one thing at a time.