Quantcast
Channel: Support - Pimoroni Buccaneers
Viewing all articles
Browse latest Browse all 6856

Speaker PHAT no sound or light

$
0
0

@mpage12 wrote:

Hello,

I have a phat stack with a drum and piano hat attached. Also a speak phat at the top. I followed these steps. https://opensourcelab.wixsite.com/raspi/pianohat

Also, I literally had it working since I got it. Then today, I ran the script to get it working (see below).

My issue is my speaker phat lights and sound are not working.
I have tried: - reboot the pi

  • unplug and plug in the speaker phat
  • run the script in the terminal for the speaker phat again.

This hasn’t worked yet. Looking for advice. Thanks

#!/usr/bin/env bash

python /home/pi/Pimoroni/pianohat/examples/simple-piano.py > /dev/null 2>&1 &
python /home/pi/Pimoroni/drumhat/examples/drums.py > /dev/null 2>&1 &

running=true

echo “Press control-c to quit!”

trap ctrl_c INT

function ctrl_c() {
killall python
running=false
}

while $running
do
sleep 1
done

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6856

Trending Articles