mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	[lvgl] Fix compile error when using encoder with buttons only. (#7203)
This commit is contained in:
		| @@ -24,6 +24,33 @@ display: | ||||
|     invert_colors: false | ||||
|     update_interval: never | ||||
|  | ||||
| binary_sensor: | ||||
|   - platform: gpio | ||||
|     internal: true | ||||
|     id: up_button | ||||
|     pin: | ||||
|       number: GPIO38 | ||||
|       inverted: true | ||||
|   - platform: gpio | ||||
|     internal: true | ||||
|     id: down_button | ||||
|     pin: | ||||
|       number: GPIO37 | ||||
|       inverted: true | ||||
|   - platform: gpio | ||||
|     internal: true | ||||
|     id: select_button | ||||
|     pin: | ||||
|       number: GPIO39 | ||||
|       inverted: true | ||||
| lvgl: | ||||
|   encoders: | ||||
|     group: switches | ||||
|     enter_button: select_button | ||||
|     sensor: | ||||
|       left_button: up_button | ||||
|       right_button: down_button | ||||
|  | ||||
| packages: | ||||
|   lvgl: !include lvgl-package.yaml | ||||
|  | ||||
|   | ||||
| @@ -67,7 +67,7 @@ lvgl: | ||||
|   displays: | ||||
|     - tft_display | ||||
|     - second_display | ||||
|   rotary_encoders: | ||||
|   encoders: | ||||
|     sensor: encoder | ||||
|     enter_button: pushbutton | ||||
|     group: general | ||||
|   | ||||
		Reference in New Issue
	
	Block a user