Play Music Without Using Iris

Hello there,

I recently purchased a Pirate Audio Headphone Amp for Raspberry Pi. I’ve installed it, added music to it, and can pull up Iris and play music.

But I would like to play music without my raspberry pi being connected to a monitor.

I just start up my Pi, and select what file I want from the Pirate Audio Hat (I assume by clicking Next until I get to my expected song).

But I can’t figure out how to do that. Is there any support on playing music directly through the Hat without using Iris?

I don’t know about Iris, but I assume it is a music playing program. You can install other programs, but I assume none of them will natively support the buttons of the Pirate Audio HAT. So you need to write a program that monitors the buttons and implements the logic, e.g. skipping to the next file, playing and so on.

Actually I think Pimoroni has some sample code for doing this. They at least link to their software on their product page.