mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-17 10:43:24 +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) {
|
if (currentFrame != lastFrameIndex) {
|
||||||
lastFrameIndex = currentFrame;
|
lastFrameIndex = currentFrame;
|
||||||
lastFrameChangeTime = millis();
|
lastFrameChangeTime = millis();
|
||||||
|
|
||||||
|
EINK_ADD_FRAMEFLAG(display, DEMAND_FAST);
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool useBigIcons = (SCREEN_WIDTH > 128);
|
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)
|
// Only show bar briefly after switching frames (unless on E-Ink)
|
||||||
#if defined(USE_EINK)
|
#if defined(USE_EINK)
|
||||||
int y = SCREEN_HEIGHT - iconSize - 1;
|
int y = SCREEN_HEIGHT - iconSize - 1;
|
||||||
|
|
||||||
|
EINK_ADD_FRAMEFLAG(display, DEMAND_FAST);
|
||||||
#else
|
#else
|
||||||
int y = SCREEN_HEIGHT - iconSize - 1;
|
int y = SCREEN_HEIGHT - iconSize - 1;
|
||||||
if (millis() - lastFrameChangeTime > ICON_DISPLAY_DURATION_MS) {
|
if (millis() - lastFrameChangeTime > ICON_DISPLAY_DURATION_MS) {
|
||||||
|
Loading…
Reference in New Issue
Block a user