Browse Source

fast display update (without refresh)

main
Hendrik Langer 5 years ago
parent
commit
73998d6f67
  1. 7
      src/main.cpp

7
src/main.cpp

@ -263,7 +263,12 @@ void displayValues() {
char timeStr[40]; char timeStr[40];
getTime(timeStr, sizeof(timeStr), "%d. %b %Y %H:%M:%S"); 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(); display.firstPage();
do do
{ {

Loading…
Cancel
Save