Sound Control by Physical button (all time)
remoitrix last edited by
I was searching and I couldn’t find a guide or something like that.
I have a project and I would like to connect to physical buttons to the GPIO to control the Sound Volume ( one to increase and another to decrease)
I don’t know if someone knows the way to do it. I mean;
- if I have to modify a document
- if I have to install a script
- and how to do it.
My proyect is a raspberry pi zero w, connected to a lcd screen by hdmi, I used a GPIO pins to the controls buttons. I have the sound amplified by a Adafruit Max 98357.
Clyde last edited by
Not exactly what you asked for, but at least in all RetroArch emulator cores you can control the volume with hotkey combinations. It seems to be a not so well known feature.
You can use a simple
pythonscript to catch GPIO input presses and translate them to volume change commands. Here is an example on how to do that - https://www.raspberrypi.org/forums/viewtopic.php?t=222763.