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

@KingQuestable

did test_gpio.py show 24 for your Y button ?
If yes, try to deactived and activate pirateaudio plugin via GUI (no reboot).
Is there any other hardware attached to the GPIOs?
Which plugins are installed?

Can you attach the following files:

  • display.py
  • userconfig.txt
  • /boot/config.txt

So i can have a look at it.

AxLED

Did you get the one on line 458?

@spinkman Aaah thanks! I have missed that line. Thanks a lot.

@AxLED so now the buttons are working well.
I just have the spotify plugin installed. When I use the buttons to navigate to a song in spotify, I can’t play it. So the A button seems to not work here. Is this a known bug oder does this suppose to be working?

Yes, spinkman is right,

in addition to the modifications you did, you have to:

  • change line 458 in display.py from for x in [5, 6, 16, 20]: to for x in [5, 6, 16, 24]:

AxLED

@KingQuestable

as i dont use spotify i couldnt test it.
But i changed the play function in my release anyway. If someone can send me some sample outputs from spotify i could implement this.
Give me some days for the update.
AxLED

@AxLED
Thanks for the info. Since I mainly use Spotify, I’ll take a look at Mopidy. Maybe that is better suited for my project. And I’m switching from volumio to Mopidy. But thanks a lot for your efforts.

Hi,

i released a new version v 0.0.3 and moved conversation to a new thread under plugin section of this forum: https://community.volumio.com/t/plugin-pirate-audio/44336
@spinkman now you can configure your GPIO Pin of Y Button via GUI.

AxLED

1 Like

Hi AxLED,
Thanks for your efforts, works great !

Hi Everyone,

Thanks for building this plugin, its great to get the pirate audio up and running on volumio.

I managed to get everything installed and working - however, the volume is very low, much lower than when i had the original software running on the pirate audio. Is there something im missed with the mixer - i have it set to hifiberry dac and software mixer. I need to set it to the high 70s to get any kind of decent volume out…

any help would be really appreciated.
Thanks,
Mark

@makearne

moved topic to https://community.volumio.com/t/plugin-pirate-audio/44336/5

AxLED