Skip to content
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
9 changes: 8 additions & 1 deletion bsp/esp_wrover_kit/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ menu "Board Support Package"
endmenu

menu "uSD card - Virtual File System"
config BSP_uSD_FORMAT_ON_MOUNT_FAIL
config BSP_SD_FORMAT_ON_MOUNT_FAIL
bool "Format uSD card if mounting fails"
default n
help
Expand All @@ -47,6 +47,13 @@ menu "Board Support Package"

endmenu
menu "Display"
config BSP_LVGL_INTEGRATION
bool "Build BSP with LVGL integration"
default y
help
When enabled, BSP headers and sources include LVGL and esp_lvgl_port.
Note: Run idf.py update-dependencies after changing this setting.

config BSP_DISPLAY_BRIGHTNESS_LEDC_CH
int "LEDC channel index"
default 1
Expand Down
2 changes: 2 additions & 0 deletions bsp/esp_wrover_kit/idf_component.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ dependencies:
version: "^2"
public: true
override_path: "../../components/esp_lvgl_port"
matches:
- if: "$CONFIG{BSP_LVGL_INTEGRATION} == True"
Comment thread
cursor[bot] marked this conversation as resolved.

button:
version: "^4"
Expand Down
11 changes: 7 additions & 4 deletions bsp/esp_wrover_kit/include/bsp/config.h
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
/*
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2024-2026 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/

#pragma once

#include "sdkconfig.h"

/**************************************************************************************************
* BSP configuration
**************************************************************************************************/
// By default, this BSP is shipped with LVGL graphical library. Enabling this option will exclude it.
// If you want to use BSP without LVGL, select BSP version with 'noglib' suffix.
#if !defined(BSP_CONFIG_NO_GRAPHIC_LIB) // Check if the symbol is not coming from compiler definitions (-D...)
/* LVGL integration: default on; disable via menuconfig (CONFIG_BSP_LVGL_INTEGRATION). */
#if CONFIG_BSP_LVGL_INTEGRATION
#define BSP_CONFIG_NO_GRAPHIC_LIB (0)
#else
#define BSP_CONFIG_NO_GRAPHIC_LIB (1)
#endif
Comment thread
cursor[bot] marked this conversation as resolved.
Loading