Gauge screen: coolant and gearbox oil as gradient arc gauges with needles on the rim, icons past the hot ends; digits only for the battery
Firmware / build (push) Successful in 3m16s

This commit is contained in:
2026-09-28 08:48:16 +02:00
parent 232eacc8a1
commit 7bc2188ae7
3 changed files with 209 additions and 92 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** (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.
**GaugeScreen** (round-panel layout, user's design 2026-09-28: two ARC GAUGES on the rim with no digits - coolant on the left from compass 230° (bottom, 50 °C) to 320° (top, 120 °C), gearbox oil on the right from 140° (bottom, 40 °C) to 40° (top, 150 °C); each a blue→neutral→red gradient built from 10° `lv_arc` segments, a white `lv_line` needle recomputed only when its angle changes, and the gauge's icon just past the hot end (red variant while that alert is on); 6 px warning-lamp ring at the very rim - dim / RED BLINKING 2 Hz on any red alert / amber on gearbox cooling; gear 110 px centre; battery [icon][12.4] bottom; Wi-Fi tell-tale at 9 o'clock (green only while joined for an update), red `!` at 3 o'clock when the link is lost. LVGL angle = compass − 90; everything 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.