From 3fc95f873e6cad6d7a81321e3956532f8e7f7c68 Mon Sep 17 00:00:00 2001 From: norbert-walter Date: Fri, 17 Jun 2022 19:23:22 +0200 Subject: [PATCH] New E-Ink update function --- lib/obp60task/obp60task.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/obp60task/obp60task.cpp b/lib/obp60task/obp60task.cpp index 65616a9..84fa5e3 100644 --- a/lib/obp60task/obp60task.cpp +++ b/lib/obp60task/obp60task.cpp @@ -255,7 +255,9 @@ void OBP60Task(GwApi *api){ } display.fillRect(0, 0, GxEPD_WIDTH, GxEPD_HEIGHT, bgcolor); // Draw white sreen display.setTextColor(textcolor); // Set display color + display.updateWindow(0, 0, GxEPD_WIDTH, GxEPD_HEIGHT, true); display.update(); // Full update (slow) + display.updateWindow(0, 0, GxEPD_WIDTH, GxEPD_HEIGHT, true); if(String(displaymode) == "Logo + QR Code" || String(displaymode) == "Logo"){ display.drawBitmap(gImage_Logo_OBP_400x300_sw, 0, 0, GxEPD_WIDTH, GxEPD_HEIGHT, pixelcolor); // Draw start logo @@ -276,6 +278,7 @@ void OBP60Task(GwApi *api){ display.fillRect(0, 0, GxEPD_WIDTH, GxEPD_HEIGHT, bgcolor); // Draw white sreen display.updateWindow(0, 0, GxEPD_WIDTH, GxEPD_HEIGHT, true); // Needs partial update before full update to refresh the frame buffer display.update(); // Full update + display.updateWindow(0, 0, GxEPD_WIDTH, GxEPD_HEIGHT, true); } }