7dc20b37a8
- 更新 CMakeLists.txt,添加新的源文件和依赖项以支持应用程序结构 - 移除旧的 main.c 和 lvgl_demo_ui.c 文件,整合应用逻辑至 app_main.c - 新增 app/ui_handlers.c 和 app/ui_handlers.h,准备处理 UI 事件 - 引入 bsp/display.c 和 bsp/touch.c,配置显示和触摸功能 - 添加 services/wifi_manager.c,管理 Wi-Fi 连接 - 组织 UI 组件和资源,提升代码可维护性与可读性 - 更新相关头文件和配置,确保项目兼容性与功能完整性
42 lines
1.1 KiB
C
42 lines
1.1 KiB
C
// This file was generated by SquareLine Studio
|
|
// SquareLine Studio version: SquareLine Studio 1.6.1
|
|
// LVGL version: 9.2.2
|
|
// Project name: HeavenlyHeroStar
|
|
|
|
#include "ui.h"
|
|
#include "ui_helpers.h"
|
|
|
|
///////////////////// VARIABLES ////////////////////
|
|
|
|
// EVENTS
|
|
lv_obj_t * ui____initial_actions0;
|
|
|
|
// IMAGES AND IMAGE SETS
|
|
|
|
///////////////////// TEST LVGL SETTINGS ////////////////////
|
|
#if LV_COLOR_DEPTH != 16
|
|
#error "LV_COLOR_DEPTH should be 16bit to match SquareLine Studio's settings"
|
|
#endif
|
|
|
|
///////////////////// ANIMATIONS ////////////////////
|
|
|
|
///////////////////// FUNCTIONS ////////////////////
|
|
|
|
///////////////////// SCREENS ////////////////////
|
|
|
|
void ui_init(void)
|
|
{
|
|
lv_disp_t * dispp = lv_display_get_default();
|
|
lv_theme_t * theme = lv_theme_default_init(dispp, lv_palette_main(LV_PALETTE_BLUE), lv_palette_main(LV_PALETTE_RED),
|
|
false, LV_FONT_DEFAULT);
|
|
lv_disp_set_theme(dispp, theme);
|
|
ui_Screen1_screen_init();
|
|
ui____initial_actions0 = lv_obj_create(NULL);
|
|
lv_disp_load_scr(ui_Screen1);
|
|
}
|
|
|
|
void ui_destroy(void)
|
|
{
|
|
ui_Screen1_screen_destroy();
|
|
}
|