From b06860cc8a60b84fb1407ffc41055b0985593d77 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: Mon, 16 Mar 2026 09:28:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9lvgl=20task=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E9=87=8A=E6=94=BECPU=E7=9A=84delay=E6=97=B6=E9=97=B4=EF=BC=8C?= =?UTF-8?q?=E7=8E=B0=E5=9C=A8=E7=94=B1lv=5Ftimer=5Fhandler=E5=86=B3?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- software/Power_Pico/User/Tasks/Src/user_LVGLTask.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/software/Power_Pico/User/Tasks/Src/user_LVGLTask.c b/software/Power_Pico/User/Tasks/Src/user_LVGLTask.c index 403b5dc..7798348 100644 --- a/software/Power_Pico/User/Tasks/Src/user_LVGLTask.c +++ b/software/Power_Pico/User/Tasks/Src/user_LVGLTask.c @@ -41,12 +41,13 @@ void TaskTickHook(void) void LvHandlerTask(void *argument) { key_event_t key_event; + uint32_t _time = 1; // default delay time while(1) { if(osMessageQueueGet(Key_MessageQueue, &key_event, NULL, 1)==osOK) { lv_lib_pm_handle_key_event(&key_event); } - lv_task_handler(); - osDelay(1); + _time = lv_timer_handler(); + osDelay(_time); } }