Repository navigation
Companion UI: add compact 128x64 clock/date layout, RTC guard, and e-ink minute refresh - #3966
cryptomaxsun wants to merge 2 commits into
Conversation
|
Oh thanks ... that's interesting as the job on clock had only been done for the thinknode M8 and not adapted to small screen For the refresh rate on eink ... normally the GxEpdDisplayDriver checks if anything changed on the screen (with a crc) so refresh should only happen when clock value really changes ... there should be no need for a special case here. The only problem I have here is wether the battery icon can change too quick (between two values), I've not catched this but think this is possible ... and for that I think it would be good to "rate limit" the battery readings (to a minute for instance) I get back to you as soon as I get some time to test your screen (sadly I don't have t114 anymore, but I have some nodes with small screens) |
|
Thanks for the review and the context about ThinkNode M8 and the e-ink CRC check! Good point — I checked Agreed on battery polling too: Here is a photo of how the compact clock/date layout looks on my Heltec T114 (running my combined test branch with #3965 battery |

Part of #3955.
Summary
HomePage::FIRSTclock/date layout for screens withheight() < 120(128×64 OLED and ST7789 boards like Heltec T114), showingMSG:N+ short date on row 1,HH:MMon row 2, and connection/PIN status on row 3.VolatileRTCClockinitializes to May 2024), showing--:--/--/--/--until valid epoch time (>= 2025-01-01 UTC) is synced via BLE or GPS.HomeScreen::render()refresh intervals on e-ink displays to minute boundaries when the clock is active (or 60s when inactive) instead of refreshing every 5 seconds.-D UI_SHOW_CLOCK=1by default on Heltec T114 Companion (with display) builds.Verification
Heltec_t114_companion_radio_bleandThinkNode_M1_companion_radio_ble.