Ax-LED / volumio-pirate-audio

Python code (Plugin) to use pirate audio dac with volumio (including display and the 4 buttons) and a raspberry pi.
29 stars 11 forks source link

Option to switch Volume up/down and Previous/Next Track location #17

Open mvastum opened 9 months ago

mvastum commented 9 months ago

Hi,

first of all, thank you for this wonderful plugin, it has made my listening experience so much better! I use a Raspberry Pi Zero 2 running Volumio in combination with the Pirate Audio Line out. The plugin runs perfectly fine, the display and buttons work like a charm. I have the Pi hooked up to a small amplifier, powering two passive speakers. As the amp has a physical volume knob I usually use that to adjust the volume and would love to be able to skip to the next or previous song from the "Now Playing" screen without going through a menu every time. I tried to change your code to this end and found the part where the button functions are defined but couldn't find the command for skipping a song. The other problem I see with that is that I would be locked out from the whole update cycle if I just alter the code on my Pi. Would it be possible to implement such a feature, similar to changing the GPIO Pin for the y-button, with the option of either volume or skipping tracks being used in the "now playing" screen and the other option in the menu? If this is too much work I totally understand and would be thankful if you could tell me the command for skipping tracks so that I can change the software on my Pi accordingly. I don't mind, if the icons don't match, I just want to be able to one-click-skip my songs :-)

Thanks so much in advance,

mvastum