On tall oled, scroll in 2 line increments

This commit is contained in:
Ben V. Brown
2024-04-09 20:20:56 +10:00
parent a9ecbcace8
commit c45c77e845

View File

@@ -394,7 +394,14 @@ void OLED::transitionScrollDown(const TickType_t viewEnterTime) {
refresh(); // Now refresh to write out the contents to the new page
return;
}
#ifdef OLED_128x32
// To keep things faster, only redraw every second line
if (heightPos % 2 == 0) {
refresh(); // Now refresh to write out the contents to the new page
}
#else
refresh(); // Now refresh to write out the contents to the new page
#endif
vTaskDelayUntil(&startDraw, TICKS_100MS / 7);
}
}