wfdudley / T-watch-2020

a watch project for the TTGO T-watch-2020 version 1
BSD 3-Clause "New" or "Revised" License
84 stars 27 forks source link

Clear hour/minute/seconds display area before going to sleep #37

Open vasimv opened 3 years ago

vasimv commented 3 years ago

When i activate clock it is usually shows old time (which was at before sleep) and real time will be shown after delay for redraw (half of second or so). This is quite annoying as i have to remember to wait for the screen redraw.

As hotfix i've added ttgo->tft->fillScreen() right before ttgo->displaySleep() in lowEnergy() function but this clears whole screen which is not needed. I think, better way is to clear only box where hour/minute/seconds are displayed and redraw them first, then all other fields but that will require to implement a function in every skin code.

wfdudley commented 3 years ago

This is mainly a problem with the Lily-Go watch face because that code is so slow. You could call ttgo->tft->fillRect() and clear the area where the time is printed.

Bill Dudley

This email is free of malware because I run Linux.

On Sat, Apr 10, 2021 at 10:06 AM vasimv @.***> wrote:

When i activate clock it is usually shows old time (which was at before sleep) and real time will be shown after delay for redraw (half of second or so). This is quite annoying as i have to remember to wait for the screen redraw.

As hotfix i've added ttgo->tft->fillScreen() right before ttgo->displaySleep() in lowEnergy() function but this clears whole screen which is not needed. I think, better way is to clear only box where hour/minute/seconds are displayed and redraw them first, then all other fields but that will require to implement a function in every skin code.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/wfdudley/T-watch-2020/issues/37, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI4VYU2N6B4QIWYFEABDUGTTIBLN5ANCNFSM42WRK7GA .