pimoroni / pirate-audio

Examples and documentation for the Pirate Audio range of Raspberry Pi add-ons
MIT License
248 stars 49 forks source link

Display image/gif and simultaneously play music not working #83

Open fapeg opened 2 years ago

fapeg commented 2 years ago

Hi, I don't want to use mopidy or anything else and use my own code.

When I display an image or a gif using one of the examples listed here (https://github.com/pimoroni/st7789-python/tree/master/examples), I can't play audio anymore with aplay or ffplay.

When I reboot and play audio using aplay or ffplay first and then run gif.py or image.py, the audio playback stops.

I think it might have something to do with different processes using the GPIO pins. How can I fix this and control the audio and the display separately without either breaking?

jaro-m commented 1 year ago

Please read this thread: https://forums.pimoroni.com/t/pirate-audio-st7789-image-display-breaks-audio/12363 I don't it's a problem with code or hardware, but just configuration. I had a similar problem, and the only thing I had to do to fix it was to change backlight pin (display configuration) from 19 to 13. I hope it helps