diff --git a/software/Power_Pico/Middlewares/LVGL/porting/lv_port_disp.c b/software/Power_Pico/Middlewares/LVGL/porting/lv_port_disp.c index 39db2cd..8101e41 100644 --- a/software/Power_Pico/Middlewares/LVGL/porting/lv_port_disp.c +++ b/software/Power_Pico/Middlewares/LVGL/porting/lv_port_disp.c @@ -75,7 +75,7 @@ void lv_port_disp_init(void) /* Example 1 * One buffer for partial rendering*/ LV_ATTRIBUTE_MEM_ALIGN - static uint8_t buf_1_1[MY_DISP_HOR_RES * MY_DISP_VER_RES / 4 * BYTE_PER_PIXEL]; + static uint8_t buf_1_1[MY_DISP_HOR_RES * MY_DISP_VER_RES / 2 * 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