feat: 添加启动按钮功能与 UI 事件处理

- 在 CMakeLists.txt 中添加 boot_button.c 源文件以支持启动按钮功能
- 新增 ui_handlers.c 和 ui_handlers.h,处理 UI 事件并初始化启动按钮
- 实现 boot_button.c,配置 GPIO 中断和任务以响应启动按钮按下事件
- 更新 board_config.h,定义启动按钮的 GPIO 引脚
This commit is contained in:
2026-07-01 22:10:11 +08:00
parent 73e62c4dfd
commit ebe62c5284
7 changed files with 109 additions and 0 deletions
+3
View File
@@ -6,6 +6,7 @@
#include "lvgl_port.h"
#include "touch.h"
#include "ui.h"
#include "ui_handlers.h"
#include "wifi_manager.h"
static const char *TAG = "app";
@@ -35,6 +36,8 @@ void app_main(void)
ui_init();
lvgl_port_unlock();
ui_handlers_init();
ESP_LOGI(TAG, "Starting WiFi");
wifi_manager_init();
}