File tree Expand file tree Collapse file tree 8 files changed +38
-74
lines changed
examples/display_lvgl_benchmark/main Expand file tree Collapse file tree 8 files changed +38
-74
lines changed Original file line number Diff line number Diff line change @@ -126,14 +126,14 @@ esp_err_t bsp_voltage_init(void)
126126 /* Init ADC1 channels */
127127 const adc_oneshot_chan_cfg_t config = {
128128 .bitwidth = ADC_BITWIDTH_DEFAULT ,
129- .atten = ADC_ATTEN_DB_11 ,
129+ .atten = ADC_ATTEN_DB_12 ,
130130 };
131131 BSP_ERROR_CHECK_RETURN_ERR (adc_oneshot_config_channel (bsp_adc_handle , ADC_CHANNEL_5 , & config ));
132132
133133 /* ESP32-S3 supports Curve Fitting calibration scheme */
134134 const adc_cali_curve_fitting_config_t cali_config = {
135135 .unit_id = ADC_UNIT_1 ,
136- .atten = ADC_ATTEN_DB_11 ,
136+ .atten = ADC_ATTEN_DB_12 ,
137137 .bitwidth = ADC_BITWIDTH_DEFAULT ,
138138 };
139139 BSP_ERROR_CHECK_RETURN_ERR (adc_cali_create_scheme_curve_fitting (& cali_config , & bsp_adc_cali_handle ));
Original file line number Diff line number Diff line change 1- version : " 4.0.0~ 1"
1+ version : " 4.0.1"
22description : Board Support Package (BSP) for ESP32-S3-Korvo-2
33url : https://github.com/espressif/esp-bsp/tree/master/bsp/esp32_s3_korvo_2
44
Original file line number Diff line number Diff line change 1- #IDF version is less than IDF5.0
2- if ("${IDF_VERSION_MAJOR} .${IDF_VERSION_MINOR} " VERSION_LESS "5.0" )
3- set (SRC_VER "esp32_s3_usb_otg_idf4.c" )
4- set (REQ "" )
5- else ()
6- set (SRC_VER "esp32_s3_usb_otg_idf5.c" )
7- set (REQ esp_adc)
8- endif ()
9-
101idf_component_register (
11- SRCS "esp32_s3_usb_otg.c" ${SRC_VER}
2+ SRCS "esp32_s3_usb_otg.c" "esp32_s3_usb_otg_idf5.c"
123 INCLUDE_DIRS "include"
134 PRIV_INCLUDE_DIRS "priv_include"
145 REQUIRES driver esp_lcd fatfs
15- PRIV_REQUIRES usb spiffs ${REQ}
6+ PRIV_REQUIRES usb spiffs esp_adc
167)
Original file line number Diff line number Diff line change @@ -33,17 +33,17 @@ ESP32-S3-USB-OTG is a development board that focuses on USB-OTG function verific
3333
3434| Available | Capability | Controller/Codec| Component | Version|
3535| ------------------| ------------------------| ----------------| ----------------------------------------------------------------------------------------------| -------|
36- | :heavy_check_mark : | :pager : DISPLAY | st7789 | idf | >=4.4 |
36+ | :heavy_check_mark : | :pager : DISPLAY | st7789 | idf | >=5.1.3 |
3737| :heavy_check_mark : | :black_circle : LVGL_PORT| | [ espressif/esp_lvgl_port] ( https://components.espressif.com/components/espressif/esp_lvgl_port ) | ^2 |
3838| :x : | :point_up : TOUCH | | | |
3939| :heavy_check_mark : | :radio_button : BUTTONS | | [ espressif/button] ( https://components.espressif.com/components/espressif/button ) | ^4 |
4040| :x : | :musical_note : AUDIO | | | |
4141| :x : | :speaker : AUDIO_SPEAKER| | | |
4242| :x : | :microphone : AUDIO_MIC | | | |
43- | :heavy_check_mark : | :floppy_disk : SDCARD | | idf | >=4.4 |
43+ | :heavy_check_mark : | :floppy_disk : SDCARD | | idf | >=5.1.3 |
4444| :x : | :video_game : IMU | | | |
45- | :heavy_check_mark : | :bulb : LED | | idf | >=4.4 |
46- | :heavy_check_mark : | :battery : BAT | | idf | >=4.4 |
45+ | :heavy_check_mark : | :bulb : LED | | idf | >=5.1.3 |
46+ | :heavy_check_mark : | :battery : BAT | | idf | >=5.1.3 |
4747
4848<!-- END_DEPENDENCIES -->
4949</div >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ esp_err_t bsp_voltage_init(void)
4343 /* Init ADC1 channels */
4444 const adc_oneshot_chan_cfg_t config = {
4545 .bitwidth = ADC_BITWIDTH_DEFAULT ,
46- .atten = ADC_ATTEN_DB_11 ,
46+ .atten = ADC_ATTEN_DB_12 ,
4747 };
4848 BSP_ERROR_CHECK_RETURN_ERR (adc_oneshot_config_channel (bsp_adc_handle , ADC_CHANNEL_0 , & config ));
4949 BSP_ERROR_CHECK_RETURN_ERR (adc_oneshot_config_channel (bsp_adc_handle , ADC_CHANNEL_5 , & config ));
5050
5151 /* ESP32-S3 supports Curve Fitting calibration scheme */
5252 const adc_cali_curve_fitting_config_t cali_config = {
5353 .unit_id = ADC_UNIT_1 ,
54- .atten = ADC_ATTEN_DB_11 ,
54+ .atten = ADC_ATTEN_DB_12 ,
5555 .bitwidth = ADC_BITWIDTH_DEFAULT ,
5656 };
5757 BSP_ERROR_CHECK_RETURN_ERR (adc_cali_create_scheme_curve_fitting (& cali_config , & bsp_adc_cali_handle ));
Original file line number Diff line number Diff line change 1- version : " 2.0.0~ 1"
1+ version : " 2.0.1"
22description : Board Support Package (BSP) for ESP32-S3-USB-OTG
33url : https://github.com/espressif/esp-bsp/tree/master/bsp/esp32_s3_usb_otg
44
99 - bsp
1010
1111dependencies :
12- idf : " >=4.4 "
12+ idf : " >=5.1.3 "
1313
1414 button :
1515 version : " ^4"
Original file line number Diff line number Diff line change @@ -24,13 +24,37 @@ static char *TAG = "app_main";
2424void app_main (void )
2525{
2626 /* Initialize display and LVGL */
27- #if defined(BSP_LCD_SUB_BOARD_2_H_RES )
27+
28+ #if defined(BSP_BOARD_ESP32_S3_LCD_EV_BOARD )
2829 /* Only for esp32_s3_lcd_ev_board */
2930 bsp_display_cfg_t cfg = {
3031 .lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG (),
3132 };
3233 cfg .lvgl_port_cfg .task_stack = 10000 ;
3334 bsp_display_start_with_config (& cfg );
35+ #elif defined(BSP_BOARD_ESP32_S3_EYE )
36+ /* Only for esp32_s3_eye */
37+ bsp_display_cfg_t cfg = {
38+ .lvgl_port_cfg = {
39+ .task_priority = CONFIG_BSP_DISPLAY_LVGL_TASK_PRIORITY ,
40+ .task_stack = 10000 ,
41+ .task_affinity = 1 ,
42+ .timer_period_ms = CONFIG_BSP_DISPLAY_LVGL_TICK ,
43+ .task_max_sleep_ms = CONFIG_BSP_DISPLAY_LVGL_MAX_SLEEP ,
44+ },
45+ .buffer_size = BSP_LCD_DRAW_BUFF_SIZE ,
46+ .double_buffer = BSP_LCD_DRAW_BUFF_DOUBLE ,
47+ .flags = {
48+ #if (CONFIG_BSP_DISPLAY_LVGL_BUFFER_IN_PSRAM && CONFIG_SPIRAM )
49+ .buff_dma = false,
50+ .buff_spiram = true,
51+ #else
52+ .buff_dma = true,
53+ .buff_spiram = false,
54+ #endif
55+ }
56+ };
57+ bsp_display_start_with_config (& cfg );
3458#else
3559 bsp_display_start ();
3660#endif
You can’t perform that action at this time.
0 commit comments