添加chart page,但是表的页面切换很卡

This commit is contained in:
不吃油炸鸡
2025-10-07 10:29:31 +08:00
parent f5b72bee14
commit a9988c46b3
3 changed files with 342 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
#include "./ui.h"
#include "./screens/ui_mainPage.h"
#include "./screens/ui_chartPage.h"
///////////////////// VARIABLES ////////////////////
@@ -15,6 +16,13 @@ Page_t pages[] = {
.key_event_handler = ui_main_page_key_handler,
.name = "Main Page"
},
{
.init = ui_ChartPage_screen_init,
.deinit = ui_ChartPage_screen_destroy,
.page_obj = &ui_ChartPage,
.key_event_handler = ui_chart_page_key_handler,
.name = "Chart Page"
},
// 可以在这里添加更多页面
};
@@ -47,5 +55,5 @@ void ui_init(void)
PageManager_load_init_screen();
//timer
lv_timer_t * ui_MainTimer = lv_timer_create(main_timer, 1000, NULL);
// lv_timer_t * ui_MainTimer = lv_timer_create(main_timer, 1000, NULL);
}