From c45c77e8455fcc83e5a8e5f3fdcf2e6fd68b9946 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Tue, 9 Apr 2024 20:20:56 +1000 Subject: [PATCH] On tall oled, scroll in 2 line increments --- source/Core/Drivers/OLED.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/Core/Drivers/OLED.cpp b/source/Core/Drivers/OLED.cpp index 478ea474..887daa25 100644 --- a/source/Core/Drivers/OLED.cpp +++ b/source/Core/Drivers/OLED.cpp @@ -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); } }