Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fapeg opened this issue Nov 1, 2022 · 1 comment
Open

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

fapeg opened this issue Nov 1, 2022 · 1 comment

Comments

@fapeg
Copy link

fapeg commented Nov 1, 2022

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
Copy link

jaro-m commented Jan 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants