Reply To: Max2Play GPIO Integration for Pause Play Next and so on buttons

Max2Play Home 2016 (en) Forums Max2Play Development (Ideas, Wishes) Max2Play GPIO Integration for Pause Play Next and so on buttons Reply To: Max2Play GPIO Integration for Pause Play Next and so on buttons

23. Januar 2016 at 21:16 #18103

Hi Maximilian,

I biult a nice „squeezebox touch“-like device with your great max2play! Thank you so much – it was very easy 😉
As I added a rotary encoder with a push-button-switch build in to my IQaudIO Pi-AMP+ the requestet feature would be very helpful for me too.

It would be nice to choose the function of the button/s. For me the following functionality seems to be good:

– short press: mute (or stop playback) and maybe shut down the attached 7 inch RPi Touchscreen (like a standby function so you don’t have to wait for booting up the device) –> short press again: unmute (or start playback) and power on the touchscreen
– long press: shutdown the RPi

I found some code but that’s my first linux experience and I have no programming skills 🙁

https://volumio.org/forum/gpio-pins-control-volume-t2219.html

For testing I connected the switch with the IQaudIO Pi-AMP+ „mute“ pin. It works – but only as long as I keep the button pressed. Do you know if this behaviour could be changed or is it realized „in hardware“ of the IQaudIO Pi-AMP+? As an alternative I could use the other left GPIO 25 (which is reserved for the IR receiver)!?

  • This reply was modified 5 years, 9 months ago by  hubert77.
  • This reply was modified 5 years, 9 months ago by  hubert77.