ebe62c5284
- 在 CMakeLists.txt 中添加 boot_button.c 源文件以支持启动按钮功能 - 新增 ui_handlers.c 和 ui_handlers.h,处理 UI 事件并初始化启动按钮 - 实现 boot_button.c,配置 GPIO 中断和任务以响应启动按钮按下事件 - 更新 board_config.h,定义启动按钮的 GPIO 引脚
30 lines
1.1 KiB
CMake
30 lines
1.1 KiB
CMake
idf_component_register(SRCS
|
|
"app/app_main.c"
|
|
"app/ui_handlers.c"
|
|
"bsp/display.c"
|
|
"bsp/touch.c"
|
|
"bsp/lvgl_port.c"
|
|
"bsp/boot_button.c"
|
|
"services/wifi_manager.c"
|
|
"ui/ui.c"
|
|
"ui/ui_helpers.c"
|
|
"ui/screens/ui_Screen1.c"
|
|
"ui/screens/ui_Screen2.c"
|
|
"ui/widgets/ui_comp_hook.c"
|
|
PRIV_REQUIRES
|
|
esp_wifi
|
|
esp_netif
|
|
nvs_flash
|
|
esp_driver_ledc
|
|
esp_driver_spi
|
|
esp_driver_gpio
|
|
esp_driver_i2c
|
|
esp_lcd
|
|
esp_timer
|
|
lvgl
|
|
INCLUDE_DIRS
|
|
"app"
|
|
"bsp"
|
|
"services"
|
|
"ui")
|