From ea7eda222992c418ce0753d3b2f3470090d5eafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=90=83=E6=B2=B9=E7=82=B8=E9=B8=A1?= <1425962791@qq.com> Date: Wed, 3 Dec 2025 18:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5PPS=20page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Power_Pico/User/GUI/ui.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Power_Pico/User/GUI/ui.c b/Power_Pico/User/GUI/ui.c index 7592456..39969e4 100644 --- a/Power_Pico/User/GUI/ui.c +++ b/Power_Pico/User/GUI/ui.c @@ -8,7 +8,7 @@ #include "./screens/ui_mainPage.h" #include "./screens/ui_chartPage.h" #include "./screens/ui_SetPage.h" - +#include "./screens/ui_PPSPage.h" //////////// interface for system hw settings /////////// @@ -74,6 +74,13 @@ Page_t pages[] = { .key_event_handler = ui_set_page_key_handler, .name = "Set Page" }, + { + .init = ui_PPSPage_screen_init, + .deinit = ui_PPSPage_screen_destroy, + .page_obj = &ui_PPSPage, + .key_event_handler = ui_pps_page_key_handler, + .name = "PPS Page" + }, // 可以在这里添加更多页面 }; @@ -135,6 +142,6 @@ void ui_init(void) // start up, just load one time only ui_StartPage_screen_init(); - lv_scr_load(ui_StartPage); + lv_screen_load(ui_StartPage); _ui_Start_animation(); }