I’m working on a project to play back audio and display cover art on the Pirate Audio HAT (Headphones) with a Pi Zero W. Playback is handled by pygame.mixer.music and display using your example code for the ST7789.
If I run the function below, audio is completely disabled. Not just for the code, but system-wide. Only a reboot fixes it, although no errors are displayed.
Is there something in this setup causing a clash with the DAC? Any help gratefully received.
disp = None def init(): global disp disp = ST7789.ST7789( height=240, rotation=90, port=0, cs=ST7789.BG_SPI_CS_FRONT, # BG_SPI_CS_BACK or BG_SPI_CS_FRONT dc=9, backlight=19, # 18 for back BG slot, 19 for front BG slot. spi_speed_hz=80 * 1000 * 1000, offset_left=0, offset_top=0 ) disp.begin()