From 73998d6f670fc1adb2e1baf908c9f1483136769c Mon Sep 17 00:00:00 2001 From: Hendrik Langer Date: Wed, 7 Aug 2019 16:02:30 +0200 Subject: [PATCH] fast display update (without refresh) --- src/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index b6e4bef..ca9e074 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -263,7 +263,12 @@ void displayValues() { char timeStr[40]; getTime(timeStr, sizeof(timeStr), "%d. %b %Y %H:%M:%S"); - display.setFullWindow(); + + if (display.epd2.hasFastPartialUpdate) { + display.setPartialWindow(0, 0, display.width(), display.height()); + } else { + display.setFullWindow(); + } display.firstPage(); do {