Skip to content

Commit

Permalink
feat(s3_eye): Add option to change LVGL buffer location from MENUCONF…
Browse files Browse the repository at this point in the history
…IG (BSP-589) (#446)
  • Loading branch information
nikhil-robinson authored Dec 5, 2024
1 parent 7969b01 commit efc7cc6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
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 internal RAM with 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

0 comments on commit efc7cc6

Please sign in to comment.