pimoroni / pirate-audio

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

button image #92

Closed Wanaming800 closed 1 year ago

Wanaming800 commented 1 year ago

inside mopidy.conf i changed A button function

bcm5 = play_pause,active_low,150 to bcm5 = prev,active_low,150

but how to change hint image on display to match new button function?

Gadgetoid commented 1 year ago

The controls are an overlay image which lives in the pidi-display-pil plugin for mopidy-pidi. It's a bit of a rabbit hole: https://github.com/pimoroni/pidi-plugins/tree/master/pidi-display-pil/pidi_display_pil/images

You should, in theory, be able to find these on your local filesystem and edit them.

You might be able to locate it with:

python3 -c "import importlib;print(importlib.util.find_spec('pidi-display-pil').origin)"
Wanaming800 commented 1 year ago

The controls are an overlay image which lives in the pidi-display-pil plugin for mopidy-pidi. It's a bit of a rabbit hole: https://github.com/pimoroni/pidi-plugins/tree/master/pidi-display-pil/pidi_display_pil/images

You should, in theory, be able to find these on your local filesystem and edit them.

Thanks for the clue Found both images and config at /usr/local/lib/python3.9/dist-packages/pidi_display_pil/