From bb94cfbd4fc1a4efe067853d652beff5f506af91 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, 26 Nov 2025 20:06:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0buf=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Power_Pico/Middlewares/LVGL/porting/lv_port_disp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Power_Pico/Middlewares/LVGL/porting/lv_port_disp.c b/Power_Pico/Middlewares/LVGL/porting/lv_port_disp.c index f03ee8c..8fa3f6d 100644 --- a/Power_Pico/Middlewares/LVGL/porting/lv_port_disp.c +++ b/Power_Pico/Middlewares/LVGL/porting/lv_port_disp.c @@ -66,12 +66,12 @@ void lv_port_disp_init(void) * -----------------------------------*/ lv_display_t * disp = lv_display_create(MY_DISP_HOR_RES, MY_DISP_VER_RES); lv_display_set_flush_cb(disp, disp_flush); -#define BUFFER_METHOD 2 +#define BUFFER_METHOD 1 #if BUFFER_METHOD == 1 /* Example 1 * One buffer for partial rendering*/ LV_ATTRIBUTE_MEM_ALIGN - static uint8_t buf_1_1[MY_DISP_HOR_RES * 10 * BYTE_PER_PIXEL]; /*A buffer for 10 rows*/ + static uint8_t buf_1_1[MY_DISP_HOR_RES * MY_DISP_VER_RES / 4 * BYTE_PER_PIXEL]; lv_display_set_buffers(disp, buf_1_1, NULL, sizeof(buf_1_1), LV_DISPLAY_RENDER_MODE_PARTIAL); #elif BUFFER_METHOD == 2