From 87aa1577cb70b33a8dc3e10987565d32b9866119 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: Sun, 8 Feb 2026 12:06:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E7=95=8C=E9=9D=A2=E7=A6=81=E6=AD=A2?= =?UTF-8?q?=E7=BF=BB=E8=BD=AC=E5=B1=8F=E5=B9=95=EF=BC=8C=E4=BB=85=E5=8F=AF?= =?UTF-8?q?=E5=9C=A8setting=20page=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Power_Pico/User/GUI/screens/ui_mainPage.c | 46 +++++++++++------------ 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/Power_Pico/User/GUI/screens/ui_mainPage.c b/Power_Pico/User/GUI/screens/ui_mainPage.c index aa8c602..6c08aef 100644 --- a/Power_Pico/User/GUI/screens/ui_mainPage.c +++ b/Power_Pico/User/GUI/screens/ui_mainPage.c @@ -30,29 +30,29 @@ void ui_main_page_key_handler(void* key_event) { lv_lib_pm_next(); } - else if (((key_event_t*)key_event)->id == KEY_ID_L && ((key_event_t*)key_event)->type == KEY_EVT_CLICK) - { - // rotation - 90 degrees - // rotation – LV_DISPLAY_ROTATION_0/90/180/270 - uint16_t rotation = ui_get_display_rotation(); - rotation = (rotation + 360 - 90) % 360; - // set rotation value - ui_set_display_rotation(rotation); - // save settings to eeprom - ui_system_settings_save(); - ui_full_screen_refresh(ui_HomeScreen); - } - else if (((key_event_t*)key_event)->id == KEY_ID_R && ((key_event_t*)key_event)->type == KEY_EVT_CLICK) - { - // rotation + 90 degrees - uint16_t rotation = ui_get_display_rotation(); - rotation = (rotation + 360 + 90) % 360; - // set rotation value - ui_set_display_rotation(rotation); - // save settings to eeprom - ui_system_settings_save(); - ui_full_screen_refresh(ui_HomeScreen); - } + // else if (((key_event_t*)key_event)->id == KEY_ID_L && ((key_event_t*)key_event)->type == KEY_EVT_CLICK) + // { + // // rotation - 90 degrees + // // rotation – LV_DISPLAY_ROTATION_0/90/180/270 + // uint16_t rotation = ui_get_display_rotation(); + // rotation = (rotation + 360 - 90) % 360; + // // set rotation value + // ui_set_display_rotation(rotation); + // // save settings to eeprom + // ui_system_settings_save(); + // ui_full_screen_refresh(ui_HomeScreen); + // } + // else if (((key_event_t*)key_event)->id == KEY_ID_R && ((key_event_t*)key_event)->type == KEY_EVT_CLICK) + // { + // // rotation + 90 degrees + // uint16_t rotation = ui_get_display_rotation(); + // rotation = (rotation + 360 + 90) % 360; + // // set rotation value + // ui_set_display_rotation(rotation); + // // save settings to eeprom + // ui_system_settings_save(); + // ui_full_screen_refresh(ui_HomeScreen); + // } } static void fmt_sig4(char *buf, size_t size, float v)