Skip to content

Commit

Permalink
lvgl: increase buffer size
Browse files Browse the repository at this point in the history
Use value from ESP-BSP.
  • Loading branch information
stintel committed Dec 21, 2023
1 parent e7237ae commit c242ba8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main/slvgl.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ esp_err_t init_lvgl_display(void)
ESP_LOGD(TAG, "init_lvgl: lcdp->lcd_io_handle: %p", lcdp->lcd_io_handle);

const lvgl_port_display_cfg_t cfg_ld = {
.buffer_size = LCD_H_RES * LCD_V_RES / 10,
//.buffer_size = LCD_H_RES * LCD_V_RES / 10,
// ESP-BOX default
.buffer_size = LCD_H_RES * 100,
.double_buffer = false,
// DMA and SPIRAM
// E (16:37:21.267) LVGL: lvgl_port_add_disp(190): Alloc DMA capable buffer in SPIRAM is not supported!
Expand Down

0 comments on commit c242ba8

Please sign in to comment.