34b3fc7ec0
Firmware / build (push) Successful in 4m1s
include/ui (SquareLine export: ui_init, placeholder screen, helpers, theme manager, project metadata) is no longer used - every screen is hand-coded. The one live line, the dark default LVGL theme, moves to display_init.cpp. Build filter and include path drop include/ui. Comments, CLAUDE.md and the stale README sections (features, layout, partitions) updated. Verified on the board (USB, dev): Wi-Fi on/forget/scan/join, dark keyboard and dialogs, update check + install of v0.1.5 from the screen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
/*
|
|
* Driveline Screen Module
|
|
*
|
|
* A hand-coded LVGL screen showing the CAN signals we have actually verified on
|
|
* the swap's bus: gear (hero), coolant, gearbox oil temp, engine RPM, turbine
|
|
* speed and output shaft, plus ignition / engine / clutch / mismatch status.
|
|
*
|
|
* The boot screen. Navigation: swipe LEFT -> Settings, swipe RIGHT -> Gauge
|
|
* Tuning (both hand-coded, like this one).
|
|
*
|
|
* Signals deliberately NOT shown: engine oil temp (no sensor on this M57N —
|
|
* 0x1D0 byte 1 is permanently 0xFF) and battery voltage (0x3B4 publishes the
|
|
* invalid marker almost always). See wiki/pages/can-id-candidates.md.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
#include <lvgl.h>
|
|
|
|
namespace DrivelineScreen {
|
|
|
|
/**
|
|
* @brief Build the screen (idempotent) and load it.
|
|
* @note Caller must hold the LVGL lock.
|
|
*/
|
|
void show();
|
|
|
|
/**
|
|
* @brief Refresh all values from the CAN driver / shared automotive data.
|
|
* Cheap no-op unless the screen exists and is currently on display.
|
|
* Call from loop(); takes its own locks.
|
|
*/
|
|
void tick();
|
|
|
|
} // namespace DrivelineScreen
|