Gauge screen: round-panel layout with warning ring (red blink on alerts, amber on cooling), whole-degree values, Wi-Fi and link tell-tales
Firmware / build (push) Successful in 3m0s

This commit is contained in:
2026-09-27 21:40:18 +02:00
parent 2262996690
commit 232eacc8a1
3 changed files with 168 additions and 67 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ include/
**DisplayInit** — `init()`, `update()`, `lock(timeout_ms)` / `unlock()`, `setBrightness(0–255)`, `getBrightness()`. Default brightness 128. `DISPLAY_RADIUS 120` defines the circular mask.
**GaugeScreen** — `init()` builds and loads the screen once; `update(data, link_ok)` at 5 Hz writes a label, colour or icon **only when it changed** (`lv_label_set_text()` and style setters invalidate even for identical values, and every redraw is SPI time). Gear label: engaged gear, or the target gear pulsing while `target != engaged`, red on the mismatch alert; icons red from A's alert bits; everything N/A when the link is lost.
**GaugeScreen** (round-panel layout 2026-09-27: 6 px warning-lamp ring at the rim - dim / RED BLINKING 2 Hz on any red alert / amber on gearbox cooling; coolant top-left and gearbox top-right as [icon][whole degrees]; gear 110 px centre; battery [icon][12.4] bottom; Wi-Fi tell-tale at 9 o'clock (green while joined for an update, dim otherwise), red `!` at 3 o'clock when the link is lost; every element placed absolutely inside the circle) — `init()` builds and loads the screen once; `setNotice(text)` shows the updater's progress line; `update(data, link_ok)` at 5 Hz writes a label, colour or icon **only when it changed** (`lv_label_set_text()` and style setters invalidate even for identical values, and every redraw is SPI time). Gear label: engaged gear, or the target gear pulsing while `target != engaged`, red on the mismatch alert; icons red from A's alert bits; everything N/A when the link is lost.
**UARTReceiver** — `init()`, `processFrame(frame, len, source)`, `getLatestData()`, `getStats()` (applied / per-transport / duplicate / config counts, checksum / framing / version errors, last times), `isConnected()`, `isSourceAlive(source)`, `getConfig()` + `getConfigSeq()`. Link lost after 1000 ms without an applied DATA frame on any transport.