@@ -26,6 +26,15 @@ menu "Board Support Package(ESP32-P4)"
26
26
default 100000
27
27
endmenu
28
28
29
+ menu "I2S"
30
+ config BSP_I2S_NUM
31
+ int "I2S peripheral index"
32
+ default 1
33
+ range 0 2
34
+ help
35
+ ESP32P4 has three I2S peripherals, pick the one you want to use.
36
+ endmenu
37
+
29
38
menu "uSD card - Virtual File System"
30
39
config BSP_SD_FORMAT_ON_MOUNT_FAIL
31
40
bool "Format uSD card if mounting fails"
@@ -68,14 +77,38 @@ menu "Board Support Package(ESP32-P4)"
68
77
endmenu
69
78
70
79
menu "Display"
80
+ config BSP_LCD_DPI_BUFFER_NUMS
81
+ int "Set number of frame buffers"
82
+ default 1
83
+ range 1 3
84
+ help
85
+ Let DPI LCD driver create a specified number of frame-size buffers. Only when it is set to multiple can the avoiding tearing be turned on.
86
+
87
+ config BSP_DISPLAY_LVGL_AVOID_TEAR
88
+ bool "Avoid tearing effect"
89
+ depends on BSP_LCD_DPI_BUFFER_NUMS > 1
90
+ default "n"
91
+ help
92
+ Avoid tearing effect through LVGL buffer mode and double frame buffers of RGB LCD. This feature is only available for RGB LCD.
93
+
94
+ choice BSP_DISPLAY_LVGL_MODE
95
+ depends on BSP_DISPLAY_LVGL_AVOID_TEAR
96
+ prompt "Select LVGL buffer mode"
97
+ default BSP_DISPLAY_LVGL_FULL_REFRESH
98
+ config BSP_DISPLAY_LVGL_FULL_REFRESH
99
+ bool "Full refresh"
100
+ config BSP_DISPLAY_LVGL_DIRECT_MODE
101
+ bool "Direct mode"
102
+ endchoice
103
+
71
104
config BSP_DISPLAY_BRIGHTNESS_LEDC_CH
72
105
int "LEDC channel index"
73
106
default 1
74
107
range 0 7
75
108
help
76
109
LEDC channel is used to generate PWM signal that controls display brightness.
77
110
Set LEDC index that should be used.
78
-
111
+
79
112
choice BSP_LCD_COLOR_FORMAT
80
113
prompt "Select LCD color format"
81
114
default BSP_LCD_COLOR_FORMAT_RGB565
0 commit comments