feat: Integrate LVGL and UI handling in app_main

- Initialize LVGL with appropriate configuration and error handling.
- Create and initialize UIHandler to manage app icons and interactions.
- Register DemoApp and ShutdownApp with AppRegistry.
- Implement touch task and display initialization for EInkDisplayHandler.
- Handle shutdown signal by switching to ShutdownApp and performing cleanup.
This commit is contained in:
GW_MC
2026-01-24 10:40:09 +08:00
parent 86e102adc7
commit 162b3710eb
3 changed files with 55 additions and 1532 deletions

View File

@@ -1,6 +1,6 @@
set(requires esp-tls spi_flash nvs_flash esp_event esp_netif esp_http_client esp_wifi esp_psram)
set(requires esp-tls spi_flash nvs_flash esp_event esp_netif esp_http_client esp_wifi esp_psram esp_lvgl_port)
file(GLOB SRCS "main.cpp" "*.cpp" "*.c" "**/*.cpp" "**/*.c")
idf_component_register(SRCS ${SRCS}
PRIV_REQUIRES ${requires}
INCLUDE_DIRS "." "display" "network" "ui" "io" "common")
INCLUDE_DIRS "." "display" "network" "ui" "ui/apps" "io" "common")