e68fad73b6
Firmware / build (push) Successful in 3m58s
Settings (replaces the SquareLine screen, now deleted): sidebar with Wi-Fi (switch, status card with failure reasons, networks nearby, full-screen password page), Updates (installed vs latest, Check, Install behind a confirm dialog) and System (CAN / link / perf overlay switches, live link, CAN, memory, uptime). Gauge Tuning: tabs Tachometer / Coolant gauge / Alerts / Simulation, 56 px -/+ rows with hints and real units, accelerating hold-to-repeat, per-tab Reset with confirm, save indicator, SIMULATION ON chip, swipe left to go back. WiFiManager rewritten without LVGL code: one remembered network (NVS "wifi"), auto-join at boot, scans only on request, no endless reconnect (keeps the ESP-NOW channel stable), failure reasons from the disconnect event, password never logged. Ota gains getStatus()/requestCheck()/ requestInstall() for the screen. CAN/UART switches become setEnabled(). Shared ui_kit (header, buttons, switches, confirm dialog); Montserrat 20/24 enabled. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1.0 KiB
C++
32 lines
1.0 KiB
C++
/*
|
|
* Settings Screen Module
|
|
*
|
|
* Hand-coded (replaces the SquareLine Settings screen, 2026-09-27). Sidebar
|
|
* with three sections:
|
|
* Wi-Fi - switch, connection status, networks nearby, full-screen password
|
|
* entry; the joined network is remembered (WiFiManager)
|
|
* Updates - installed vs latest release, Check, Install behind a confirm
|
|
* dialog (Ota)
|
|
* System - CAN bus / link to Controller B / performance overlay switches,
|
|
* live link and memory figures
|
|
*
|
|
* Reached by swiping LEFT on the Driveline screen; swipe right or the
|
|
* Driveline button goes back. Built once and kept (never deleted), so nothing
|
|
* elsewhere ever holds a pointer into a destroyed screen.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
#include <lvgl.h>
|
|
|
|
namespace SettingsScreen {
|
|
|
|
/** Build (idempotent), refresh and load. Caller holds the LVGL lock. */
|
|
void show();
|
|
|
|
/** Refresh live values while the screen is shown. Call from loop(); takes its own lock. */
|
|
void tick();
|
|
|
|
} // namespace SettingsScreen
|