Sound Control by Physical button (all time)
-
Hi guys!
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.
Thanks guys!
-
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
python
script 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.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.