From 9a16924501b89f3b3e27965cbddc0c30e11c0de1 Mon Sep 17 00:00:00 2001 From: martinberlin Date: Sun, 13 Jun 2021 14:57:25 +0200 Subject: [PATCH] Related to commit in https://github.com/martinberlin/lv_port_esp32-epaper/commit/196e4888a0a1af1ea7a7be31f1a2e8dc19d2cbbd --- lvgl_helpers.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lvgl_helpers.h b/lvgl_helpers.h index cae3a25..dae0c35 100644 --- a/lvgl_helpers.h +++ b/lvgl_helpers.h @@ -41,10 +41,10 @@ extern "C" { #elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ST7735S #define DISP_BUF_SIZE (LV_HOR_RES_MAX * 40) #elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ST7796S -#define DISP_BUF_SIZE (LV_HOR_RES_MAX * 40) +#define DISP_BUF_SIZE (LV_HOR_RES_MAX * LV_VER_RES_MAX/3) // Here is the issue that it does not draw full epaper. Insufficient buffer: #elif defined (CONFIG_LV_EPAPER_EPDIY_DISPLAY_CONTROLLER) -#define DISP_BUF_SIZE (LV_HOR_RES_MAX * 110) +#define DISP_BUF_SIZE (LV_HOR_RES_MAX * 38) #elif defined (CONFIG_LV_EPAPER_CALEPD_DISPLAY_CONTROLLER) #define DISP_BUF_SIZE (LV_HOR_RES_MAX * 90)