PaperPi
PaperPi copied to clipboard
Non IT8951 screens incompatible with hifi berry
Describe the bug Boards that use gpiozero are incompatible with HiFiBerry due to a pin conflict on GPIO 24 (pin 18). gpiozero stops all sound output.
To Reproduce Steps to reproduce the behavior:
- Start music playing via go-librespot/LMS client
- Start paperpi
- music stops
Expected behavior Paperpi should not stop audio
Hardware
- all non IT8951 screens
Plugin Issues Impacts librespot and LMS plugins
Additional context
solution is to remap GPIO 24 to any other unused GPIO other than 18-21 (HiFiBerry GPIO pins). This will require patching epdconfig.py
in the waveshare library.
The solution looks like either monkey-patching the waveshare epdconfig
or rewriting it entirely. This is a pretty difficult fix because simply loading the proper waveshare module for a non-IT8951 screen opens a gpiozro GPIO 24 pin and crashes the HiFiBerry sound output in an irrecoverable way.