Reverse lights on DO0, Sport + Vehicle screens, per-DDE live data, ECU identification
Firmware / build (push) Successful in 10m49s

- ReverseLight: isolated output DO0 (CH422G OC0 -> PC817 -> NPN sink) drives the
  reverse-lamp relay while the lever is in R on a live bus with ignition on; 10 Hz
  decision confirmed over 200 ms, written through the panel library's expander
  object so the backlight cannot undo it; `reverse status|on|off|force` console,
  default ON (NVS `revlight_en`). Wiki page reverse-lights-output with the wiring.
- Sport screen: BMW-style power + torque gauges (lv_meter on a dial-face image,
  image needle); PNG sources in assets/, tools/png2lvgl.py converter.
- Vehicle: final drive ratio + tyre circumference -> road speed, hp from torque;
  Settings > Vehicle page; `vehicle` console.
- Bench simulation (`sim` console) overlays torque / rpm / shaft on the snapshot.
- EcuIdent: KWP 1A 86 / 1A 80 read once, stored in NVS, shown on Settings >
  Vehicle, passive ECU CHANGED? check; `ecu` console.
- Ignition fallback from the 0x1D2 lever byte on buses without 0x3B4 (Patrol 2).
- Engine data: per-DDE `2C 10` identifier profiles (Patrol 1 vs Patrol 2
  rail 00C2 / boost 003A / battery 002F); DiagProbe liveConfigure().
- Wiki: Patrol 2 captures, vehicles page, obd identifier table per DDE, logs.
This commit is contained in:
2026-10-28 16:46:42 +01:00
parent 8ded9c2a08
commit 1cba9f30bc
60 changed files with 70386 additions and 100 deletions
+4
View File
@@ -10,6 +10,7 @@
namespace DisplayInit {
static Backlight* g_backlight = nullptr;
static esp_expander::Base* g_expander = nullptr;
/**
* Firmware version, bottom-right on every screen. Lives on lv_layer_top(), which
@@ -25,6 +26,8 @@ static void createVersionLabel() {
lv_obj_align(lbl, LV_ALIGN_BOTTOM_RIGHT, -8, -4);
}
esp_expander::Base* expander() { return g_expander; }
void setBacklight(bool on) {
if (g_backlight == nullptr) return;
if (on) g_backlight->on();
@@ -117,6 +120,7 @@ DisplayObjects init() {
// Return board and backlight objects for later use
g_backlight = backlight;
g_expander = board->getIO_Expander() ? board->getIO_Expander()->getBase() : nullptr;
return {board, backlight};
}