mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-16 18:25:10 +00:00
Eink Cycling code moving frames
This commit is contained in:
parent
303006e1df
commit
69058002d7
@ -3495,6 +3495,8 @@ void NavigationBar(OLEDDisplay *display, OLEDDisplayUiState *state)
|
||||
if (currentFrame != lastFrameIndex) {
|
||||
lastFrameIndex = currentFrame;
|
||||
lastFrameChangeTime = millis();
|
||||
|
||||
EINK_ADD_FRAMEFLAG(display, DEMAND_FAST);
|
||||
}
|
||||
|
||||
const bool useBigIcons = (SCREEN_WIDTH > 128);
|
||||
@ -3516,6 +3518,8 @@ void NavigationBar(OLEDDisplay *display, OLEDDisplayUiState *state)
|
||||
// Only show bar briefly after switching frames (unless on E-Ink)
|
||||
#if defined(USE_EINK)
|
||||
int y = SCREEN_HEIGHT - iconSize - 1;
|
||||
|
||||
EINK_ADD_FRAMEFLAG(display, DEMAND_FAST);
|
||||
#else
|
||||
int y = SCREEN_HEIGHT - iconSize - 1;
|
||||
if (millis() - lastFrameChangeTime > ICON_DISPLAY_DURATION_MS) {
|
||||
|
Loading…
Reference in New Issue
Block a user