From ff57588845f191d2a876cf7b0e932fad0a709d68 Mon Sep 17 00:00:00 2001 From: Mikhail Grushinskiy Date: Sun, 26 Mar 2023 22:26:24 -0400 Subject: [PATCH] Update bbn_m5tough_lvgl_clock.ino --- bbn_m5tough_lvgl_clock/bbn_m5tough_lvgl_clock.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbn_m5tough_lvgl_clock/bbn_m5tough_lvgl_clock.ino b/bbn_m5tough_lvgl_clock/bbn_m5tough_lvgl_clock.ino index 59e37af..7d0af15 100644 --- a/bbn_m5tough_lvgl_clock/bbn_m5tough_lvgl_clock.ino +++ b/bbn_m5tough_lvgl_clock/bbn_m5tough_lvgl_clock.ino @@ -30,7 +30,7 @@ void tft_lv_initialization() { static lv_color_t *buf2 = (lv_color_t *)heap_caps_malloc((LV_HOR_RES_MAX * LV_VER_RES_MAX * sizeof(lv_color_t)) / 2, MALLOC_CAP_8BIT | MALLOC_CAP_SPIRAM); // Initialize `disp_buf` display buffer with the buffer(s). - lv_disp_draw_buf_init(&draw_buf, buf1, buf2, (LV_HOR_RES_MAX * LV_VER_RES_MAX) / 10); + lv_disp_draw_buf_init(&draw_buf, buf1, buf2, (LV_HOR_RES_MAX * LV_VER_RES_MAX) / 2); tft = &M5.Lcd; }