Hello there! Just received my Pirate Audio (Headphone) and I have two questions:
I have re-organized the keys and added the script for paperclip shutdown to bcm16. Is possible to use pins 39 & 40 in order not to use the key from Pirate Audio? And is it possible to remove the signs (volume gauge from bcm 6 & bcm 20) and next from bcm 16 as they are new organized?
Thank you in advance
You can use a dtoverlay to do a shutdown. It would be easier than your posted paperclip methode.
dtoverlay=gpio-shutdown will have Raspbian do a proper shut down when GPIO 3 is grounded. It can be set to use another GPIO of your choice though. For my fan shim I use the following
The fan shim button grounds GPIO 17 when pressed. Just change the 17 to the GPIO you want to use. Thats the BCM number not the actual physical pin number.
You just add the above line to the config.txt file.
The pinout for the pirate audio is here
I would avoid using any of the pins in use by it. Other than the ones used by the buttons that is. You could use one of those, you’ll just have to make sure their original function is disabled.
Just so you know, I don’t own a Pirate Audio, just one of the original Pirate Radio’s built around the phat beat.