From 21a9315782edf8719b82c87d7f073a47b01f6e73 Mon Sep 17 00:00:00 2001 From: s-martin Date: Sun, 26 Feb 2023 21:21:01 +0100 Subject: [PATCH] Fix Pirate Audio Button Volume Up (#1975) * Update setup_pirateAudioHAT.sh Fix #1974 * Update README.md * Update setup_pirateAudioHAT.sh Support early and late revisions of PirateHat, see https://github.com/pimoroni/pirate-audio/issues/63#issuecomment-916860634 * Update README.md Support early and late revisions of PirateHat, see https://github.com/pimoroni/pirate-audio/issues/63#issuecomment-916860634 * Update README.md --- components/audio/PirateAudioHAT/README.md | 3 +++ components/audio/PirateAudioHAT/setup_pirateAudioHAT.sh | 1 + 2 files changed, 4 insertions(+) diff --git a/components/audio/PirateAudioHAT/README.md b/components/audio/PirateAudioHAT/README.md index adebac7ef..3450dd120 100644 --- a/components/audio/PirateAudioHAT/README.md +++ b/components/audio/PirateAudioHAT/README.md @@ -74,11 +74,14 @@ NOTE: changes to the installation should find their way into the script `setup_p bcm6 = volume_down,active_low,150 bcm16 = next,active_low,150 bcm20 = volume_up,active_low,150 + bcm24 = volume_up,active_low,150 [pidi] enabled = true display = st7789 ``` + **Attention:** Early revisions of PirateAudio HAT used bcm20 for Volume up, later revisions use bcm24. see also https://github.com/pimoroni/pirate-audio/issues/63#issuecomment-916860634 + 12. Enable access for modipy user `sudo usermod -a -G spi,i2c,gpio,video mopidy` diff --git a/components/audio/PirateAudioHAT/setup_pirateAudioHAT.sh b/components/audio/PirateAudioHAT/setup_pirateAudioHAT.sh index add059670..a6152a0ca 100755 --- a/components/audio/PirateAudioHAT/setup_pirateAudioHAT.sh +++ b/components/audio/PirateAudioHAT/setup_pirateAudioHAT.sh @@ -106,6 +106,7 @@ bcm5 = play_pause,active_low,150 bcm6 = volume_down,active_low,150 bcm16 = next,active_low,150 bcm20 = volume_up,active_low,150 +bcm24 = volume_up,active_low,150 [pidi] enabled = true