Decommission SquareLine: delete include/ui, theme set in display_init
Firmware / build (push) Successful in 4m1s
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>
This commit is contained in:
@@ -4,12 +4,13 @@ Automotive display controller for Waveshare ESP32-S3-Touch-LCD-5B (1024x600 RGB
|
||||
|
||||
## Features
|
||||
|
||||
- ✅ **WiFi** - Network scanning with dynamic SSID list
|
||||
- ✅ **UART** - Automotive data transmission @ 5Hz (GPIO 43/44)
|
||||
- ✅ **Debug Mode** - FPS and CPU metrics display
|
||||
- ✅ **Settings Persistence** - NVS storage for toggle states
|
||||
- ✅ **Touch UI** - LVGL 8.4.0 with SquareLine Studio UI
|
||||
- ✅ **FreeRTOS** - Multi-core architecture (WiFi/UART on Core 0, LVGL on Core 1)
|
||||
- ✅ **CAN bus** - decodes the BMW M57N / ZF 6HP powertrain frames (gear, temperatures, rpm, ...)
|
||||
- ✅ **Link to Controller B** - data + gauge config @ 5 Hz over RS485 (UART1) and ESP-NOW
|
||||
- ✅ **Screens** - Driveline (boot), Settings (Wi-Fi / Updates / System), Gauge Tuning; LVGL 8.4.0, hand-coded
|
||||
- ✅ **Wi-Fi** - one remembered network, joined at boot
|
||||
- ✅ **OTA updates** - signed releases from Gitea, installed from the Settings screen
|
||||
- ✅ **Settings persistence** - NVS
|
||||
- ✅ **FreeRTOS** - Wi-Fi / UART / CAN on Core 0, LVGL on Core 1
|
||||
|
||||
## Hardware
|
||||
|
||||
@@ -64,32 +65,31 @@ pio run --target upload && pio device monitor
|
||||
## Project Structure
|
||||
|
||||
```
|
||||
migrate-to-pio/
|
||||
├── platformio.ini # PlatformIO configuration
|
||||
├── partition_table.csv # Partition table (3MB app + 1MB SPIFFS)
|
||||
├── src/ # Source code (non-UI)
|
||||
│ ├── main.cpp # Main application
|
||||
│ ├── automotive_data.h # UART data structures
|
||||
│ └── lvgl_v8_port.h/cpp # LVGL porting layer
|
||||
├── ui/ # SquareLine Studio exports
|
||||
│ └── ui*.h/c # UI files (auto-generated)
|
||||
├── include/
|
||||
│ └── lv_conf.h # LVGL configuration
|
||||
└── .pio/ # Build artifacts (gitignored)
|
||||
platformio.ini # PlatformIO configuration
|
||||
partition_table.csv # dual OTA slots (2 x 7.9 MB), NVS, coredump
|
||||
src/
|
||||
main.cpp # setup, loop, console routing
|
||||
modules/ # screens, Wi-Fi, link, OTA, tunables, ...
|
||||
drivers/can_driver.cpp # CAN (TWAI)
|
||||
include/
|
||||
config/ # lv_conf.h, ota_config.h, board config
|
||||
display/ # LVGL port
|
||||
protocol/automotive_data.h # link protocol shared with Controller B
|
||||
wiki/ # project knowledge base
|
||||
```
|
||||
|
||||
**Important**: Configure SquareLine Studio to export UI files to the `ui/` directory. This prevents the auto-generated UI code from overwriting your custom source files in `src/`.
|
||||
See `CLAUDE.md` for the architecture.
|
||||
|
||||
## Configuration
|
||||
|
||||
### Partition Scheme
|
||||
|
||||
Current: **Huge APP (3MB No OTA / 1MB SPIFFS)**
|
||||
Dual OTA (see `partition_table.csv`):
|
||||
|
||||
- NVS: 20KB (settings storage)
|
||||
- NVS: 20KB (settings, tunables, Wi-Fi) - never move it
|
||||
- OTA data: 8KB
|
||||
- App: 3MB (application code)
|
||||
- SPIFFS: 1MB (file system)
|
||||
- app0 / app1: 7.9MB each (firmware ~1.7MB)
|
||||
- Coredump: 64KB
|
||||
|
||||
Edit `partition_table.csv` to customize partition sizes.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user