rusconi / TFT-MoodeCoverArt

Display artwork and some metadata from moode audio on a 240*240 ST7789 TFT
13 stars 9 forks source link

Screen not blanking on pause #11

Closed ukstevef closed 1 year ago

ukstevef commented 1 year ago

I use "mpc toggle" to pause/resume playing, but the screen does not blank when paused.

Fix is to change

                if 'state' in mpd_status:
                    if (mpd_status['state'] == 'stop') and (BLANK != 0):

to

               if 'state' in mpd_status:
                    if (mpd_status['state'] != 'play') and (BLANK != 0):
rusconi commented 1 year ago

My intent for pause was not to blank the screen. I wanted to see what I had paused.

ukstevef commented 1 year ago

My intent for pause was not to blank the screen. I wanted to see what I had paused.

Not a problem, perhaps we could have it as a preference in the config ?

rusconi commented 1 year ago

sure. That's possible. I'll try to add it later this week.

rusconi commented 1 year ago

Hi. I have added a preference option in the config.yml file pauseblank = 1 will blank the screen on pause I have tested and it works foe me. Let me know if you have issues.