lvgl / lv_port_esp32

LVGL ported to ESP32 including various display and touchpad drivers
MIT License
1.03k stars 436 forks source link

Changing size of display buffer #305

Closed dlugaz closed 2 years ago

dlugaz commented 2 years ago

I wanted to increase the size of display buffer and change it to single buffered (from double buffered). I'm using ILI9488 via SPI. I changed the DISP_BUF_SIZE to 60*480. Code compiles, there is enough memory, buffers are declared static.

#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9488
#define DISP_BUF_SIZE  (LV_HOR_RES_MAX * 60)

static DMA_ATTR lv_color_t buf1[DISP_BUF_SIZE];

Code runs, but the display is ruptured. Looks as if only some of the buffers and sent correctly photo

Do you have any idea why this can happen?

stale[bot] commented 2 years ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

1012302887 commented 2 years ago

I have also encountered this problem. How do you solve this problem,

1012302887 commented 2 years ago

This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

1012302887 commented 2 years ago

I wanted to increase the size of display buffer and change it to single buffered (from double buffered). I'm using ILI9488 via SPI. I changed the DISP_BUF_SIZE to 60*480. Code compiles, there is enough memory, buffers are declared static.

#elif defined CONFIG_LV_TFT_DISPLAY_CONTROLLER_ILI9488
#define DISP_BUF_SIZE  (LV_HOR_RES_MAX * 60)

static DMA_ATTR lv_color_t buf1[DISP_BUF_SIZE];

Code runs, but the display is ruptured. Looks as if only some of the buffers and sent correctly photo

Do you have any idea why this can happen?

I have also encountered this problem. How do you solve this problem,