You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: components/esp_lvgl_port/CHANGELOG.md
+8
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
# Changelog
2
2
3
+
## 2.5.0
4
+
5
+
### Features (Breaking change)
6
+
- Updated LVGL port for using IoT button component v4 (LVGL port not anymore creating button, need to be created in app and included handle to LVGL port)
Copy file name to clipboardexpand all lines: components/esp_lvgl_port/README.md
+27-24
Original file line number
Diff line number
Diff line change
@@ -113,35 +113,35 @@ Add touch input to the LVGL. It can be called more times for adding more touch i
113
113
Add buttons input to the LVGL. It can be called more times for adding more buttons inputs for different displays. This feature is available only when the component `espressif/button` was added into the project.
114
114
```c
115
115
/* Buttons configuration structure */
116
-
constbutton_config_t bsp_button_config[] = {
116
+
constbutton_gpio_config_t bsp_button_config[] = {
117
117
{
118
-
.type = BUTTON_TYPE_ADC,
119
-
.adc_button_config.adc_channel = ADC_CHANNEL_0, // ADC1 channel 0 is GPIO1
120
-
.adc_button_config.button_index = 0,
121
-
.adc_button_config.min = 2310, // middle is 2410mV
122
-
.adc_button_config.max = 2510
118
+
.gpio_num = GPIO_NUM_37,
119
+
.active_level = 0,
123
120
},
124
121
{
125
-
.type = BUTTON_TYPE_ADC,
126
-
.adc_button_config.adc_channel = ADC_CHANNEL_0, // ADC1 channel 0 is GPIO1
127
-
.adc_button_config.button_index = 1,
128
-
.adc_button_config.min = 1880, // middle is 1980mV
129
-
.adc_button_config.max = 2080
122
+
.gpio_num = GPIO_NUM_38,
123
+
.active_level = 0,
130
124
},
131
125
{
132
-
.type = BUTTON_TYPE_ADC,
133
-
.adc_button_config.adc_channel = ADC_CHANNEL_0, // ADC1 channel 0 is GPIO1
@@ -160,10 +160,9 @@ Add buttons input to the LVGL. It can be called more times for adding more butto
160
160
Add encoder input to the LVGL. It can be called more times for adding more encoder inputs for different displays. This feature is available only when the component `espressif/knob` was added into the project.
0 commit comments