Retire SquareLine: hand-coded gauge screen (oil quadrant dropped), LVGL lock, updates on change only; LVGL pool in PSRAM, millis tick, log off; 16 MB flash + OTA partitions; docs and wiki
This commit is contained in:
@@ -63,18 +63,13 @@ ESP32-S3-LCD-1.3/
|
||||
├── include/
|
||||
│ ├── config/
|
||||
│ │ └── lv_conf.h # LVGL 8.4.0 configuration
|
||||
│ ├── display/ # Display-specific headers
|
||||
│ ├── modules/
|
||||
│ │ └── display_init.h # Display initialization
|
||||
│ ├── protocol/
|
||||
│ │ └── automotive_data.h # UART protocol (for future phases)
|
||||
│ └── ui/ # SquareLine Studio UI exports
|
||||
│ ├── components/ # UI components
|
||||
│ ├── screens/ # UI screens
|
||||
│ └── ui.c/ui.h # Main UI files
|
||||
│ ├── modules/ # module headers
|
||||
│ └── protocol/
|
||||
│ └── automotive_data.h # link protocol, shared with Controller A
|
||||
├── src/
|
||||
│ ├── main.cpp # Phase 1 main application
|
||||
│ └── display_init.cpp # Display driver implementation
|
||||
│ ├── main.cpp # setup/loop: link, gauges, screen update
|
||||
│ ├── modules/ # display init + LVGL lock, gauge screen, receivers, gauge outputs
|
||||
│ └── assets/ # fonts and icons (plain LVGL C arrays)
|
||||
├── platformio.ini # PlatformIO configuration
|
||||
├── CLAUDE.md # Developer guide (pins, build, architecture)
|
||||
├── wiki/ # Second-brain knowledge base (Obsidian vault)
|
||||
@@ -101,22 +96,9 @@ See `CLAUDE.md` for the developer guide and `wiki/index.md` for domain knowledge
|
||||
- Live uptime counter
|
||||
- Performance statistics
|
||||
|
||||
### SquareLine Studio UI (Optional)
|
||||
### Screen
|
||||
|
||||
The project includes exported UI from SquareLine Studio in `include/ui/`. To use it:
|
||||
|
||||
1. Replace the test UI in `src/main.cpp` with:
|
||||
```cpp
|
||||
#include "ui/ui.h"
|
||||
|
||||
void setup() {
|
||||
// ... display init ...
|
||||
ui_init(); // Initialize SquareLine UI
|
||||
// ... start LVGL task ...
|
||||
}
|
||||
```
|
||||
|
||||
2. Customize the UI by editing in SquareLine Studio and re-exporting to `include/ui/`
|
||||
The single screen is hand-coded LVGL in `src/modules/gauge_screen.cpp` (SquareLine Studio is no longer used): coolant and gearbox oil temperature with status icons, the gear in the middle (pulsing while the box shifts), battery voltage below.
|
||||
|
||||
## Serial Monitor Output
|
||||
|
||||
|
||||
Reference in New Issue
Block a user