mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
On tall oled, scroll in 2 line increments
This commit is contained in:
@@ -394,7 +394,14 @@ void OLED::transitionScrollDown(const TickType_t viewEnterTime) {
|
|||||||
refresh(); // Now refresh to write out the contents to the new page
|
refresh(); // Now refresh to write out the contents to the new page
|
||||||
return;
|
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
|
refresh(); // Now refresh to write out the contents to the new page
|
||||||
|
#endif
|
||||||
vTaskDelayUntil(&startDraw, TICKS_100MS / 7);
|
vTaskDelayUntil(&startDraw, TICKS_100MS / 7);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user