Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(s3_eye): Add option to change LVGL buffer location from MENUCONFIG (BSP-589) #446

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions bsp/esp32_s3_eye/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ menu "Board Support Package"
range 1 500
help
Maximum time for task sleep in ms.

config BSP_DISPLAY_LVGL_BUFFER_IN_PSRAM
bool "Allocate LVGL buffer in PSRAM "
default n
help
LVGL buffer will be Allocated in PSRAM instead of DMA.

config BSP_DISPLAY_BRIGHTNESS_LEDC_CH
int "LEDC channel index"
Expand Down
5 changes: 5 additions & 0 deletions bsp/esp32_s3_eye/esp32_s3_eye.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,13 @@ lv_display_t *bsp_display_start(void)
.buffer_size = BSP_LCD_DRAW_BUFF_SIZE,
.double_buffer = BSP_LCD_DRAW_BUFF_DOUBLE,
.flags = {
#if (CONFIG_BSP_DISPLAY_LVGL_BUFFER_IN_PSRAM && CONFIG_SPIRAM)
.buff_dma = false,
.buff_spiram = true,
#else
.buff_dma = true,
.buff_spiram = false,
#endif
}
};
return bsp_display_start_with_config(&cfg);
Expand Down
2 changes: 1 addition & 1 deletion bsp/esp32_s3_eye/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "4.0.0"
version: "4.0.1"
description: Board Support Package (BSP) for ESP32-S3-EYE
url: https://github.com/espressif/esp-bsp/tree/master/bsp/esp32_s3_eye

Expand Down