Merge pull request #46 from pmow/feature/eink-ui-scale

GDEQ0426T82 4.26" panel (#42), bulk SPI writes (#43), Text size and Icon size for big panels

# Conflicts:
#	examples/companion_radio/DataStore.cpp
#	examples/companion_radio/NodePrefs.h
This commit is contained in:
Jakub
2026-10-11 10:41:29 +02:00
14 changed files with 346 additions and 23 deletions
+9
View File
@@ -544,6 +544,15 @@ struct NodePrefs { // persisted to file
static const uint8_t ADV_LOC_PREC_COUNT = 4;
uint8_t advert_loc_prec;
// ── Text and icon size (ui-new, big e-ink panels) ──────────────────────
// Settings > Display, only on builds that opt in (EINK_FONT_SCALE /
// STATUS_ICON_SCALE). ui_text_scale: the font's pixel multiplier, 1-5; 0 is
// the build's own (DataStore sanitize sets EINK_FONT_SCALE there).
// ui_icon_scale: Home's status icons, 0 = Auto (1.5x the text), else 1-8.
static const uint8_t UI_TEXT_SCALE_MAX = 5, UI_ICON_SCALE_MAX = 8;
uint8_t ui_text_scale;
uint8_t ui_icon_scale;
// Single source of truth for the live-share option tables (shared by the Map
// UI labels and the auto-send engine in UITask).
static const uint8_t LOC_SHARE_MOVE_COUNT = 4;