mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			42 lines
		
	
	
		
			733 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			733 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| display:
 | |
|   - platform: sdl
 | |
|     id: sdl0
 | |
|     auto_clear_enabled: false
 | |
|     dimensions:
 | |
|       width: 480
 | |
|       height: 320
 | |
|   - platform: sdl
 | |
|     id: sdl1
 | |
|     dimensions:
 | |
|       width: 480
 | |
|       height: 480
 | |
| 
 | |
| touchscreen:
 | |
|   - platform: sdl
 | |
|     display: sdl0
 | |
|     sdl_id: sdl0
 | |
| 
 | |
| lvgl:
 | |
|   - id: lvgl_0
 | |
|     displays: sdl0
 | |
|   - id: lvgl_1
 | |
|     displays: sdl1
 | |
|     on_idle:
 | |
|       timeout: 8s
 | |
|       then:
 | |
|         if:
 | |
|           condition:
 | |
|             lvgl.is_idle:
 | |
|               lvgl_id: lvgl_1
 | |
|               timeout: 5s
 | |
|           then:
 | |
|             logger.log: Lvgl2 is idle
 | |
|     widgets:
 | |
|       - button:
 | |
|           align: center
 | |
|           widgets:
 | |
|             - label:
 | |
|                 text: Click ME
 | |
|           on_click:
 | |
|             logger.log: Clicked
 |