Skip to content

Commit

Permalink
Modify display refresh (fix multible refresh)
Browse files Browse the repository at this point in the history
  • Loading branch information
norbert-walter committed Aug 23, 2024
1 parent a78288b commit 57fbaf3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/obp60task/obp60task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,8 @@ void OBP60Task(GwApi *api){

// Full display update afer a new selected page and 4s wait time
if(millis() > starttime4 + 4000 && delayedDisplayUpdate == true){
starttime1 = millis();
starttime2 = millis();
getdisplay().setFullWindow(); // Set full update
if(FAST_FULL_UPDATE == false){
getdisplay().fillScreen(pixelcolor);// Clear display
Expand All @@ -553,6 +555,7 @@ void OBP60Task(GwApi *api){
// This needs for a better display contrast after power on in cold or warm environments
if(millis() < firststart + (5 * 60 * 1000) && millis() > starttime1 + (60 * 1000)){
starttime1 = millis();
starttime2 = millis();
LOG_DEBUG(GwLog::DEBUG,"E-Ink full refresh first 5 min");
getdisplay().setFullWindow(); // Set full update
if(FAST_FULL_UPDATE == false){
Expand Down

0 comments on commit 57fbaf3

Please sign in to comment.