mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-03 16:41:50 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			73 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			73 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
packages:
 | 
						|
  lvgl: !include lvgl-package.yaml
 | 
						|
  spi: !include ../../test_build_components/common/spi/esp32-idf.yaml
 | 
						|
  i2c: !include ../../test_build_components/common/i2c/esp32-idf.yaml
 | 
						|
 | 
						|
sensor:
 | 
						|
  - platform: rotary_encoder
 | 
						|
    name: "Rotary Encoder"
 | 
						|
    id: encoder
 | 
						|
    pin_a: 3
 | 
						|
    pin_b: 1
 | 
						|
    internal: true
 | 
						|
 | 
						|
binary_sensor:
 | 
						|
  - platform: gpio
 | 
						|
    id: pushbutton
 | 
						|
    name: Pushbutton
 | 
						|
    pin:
 | 
						|
      number: 0
 | 
						|
      inverted: true
 | 
						|
      ignore_strapping_warning: true
 | 
						|
 | 
						|
display:
 | 
						|
  - platform: ili9xxx
 | 
						|
    spi_id: spi_bus
 | 
						|
    model: st7789v
 | 
						|
    id: second_display
 | 
						|
    dimensions:
 | 
						|
      width: 240
 | 
						|
      height: 320
 | 
						|
    transform:
 | 
						|
      swap_xy: false
 | 
						|
      mirror_x: true
 | 
						|
      mirror_y: true
 | 
						|
    data_rate: 80MHz
 | 
						|
    cs_pin: GPIO20
 | 
						|
    dc_pin:
 | 
						|
      number: GPIO15
 | 
						|
      ignore_strapping_warning: true
 | 
						|
    auto_clear_enabled: false
 | 
						|
    invert_colors: false
 | 
						|
    update_interval: never
 | 
						|
 | 
						|
  - platform: ili9xxx
 | 
						|
    spi_id: spi_bus
 | 
						|
    model: st7789v
 | 
						|
    id: tft_display
 | 
						|
    dimensions:
 | 
						|
      width: 240
 | 
						|
      height: 320
 | 
						|
    transform:
 | 
						|
      swap_xy: false
 | 
						|
      mirror_x: true
 | 
						|
      mirror_y: true
 | 
						|
    data_rate: 80MHz
 | 
						|
    cs_pin: GPIO22
 | 
						|
    dc_pin: GPIO21
 | 
						|
    auto_clear_enabled: false
 | 
						|
    invert_colors: false
 | 
						|
    update_interval: never
 | 
						|
 | 
						|
lvgl:
 | 
						|
  displays:
 | 
						|
    - tft_display
 | 
						|
    - second_display
 | 
						|
  encoders:
 | 
						|
    sensor: encoder
 | 
						|
    enter_button: pushbutton
 | 
						|
    group: general
 | 
						|
    initial_focus: lv_roller
 | 
						|
 | 
						|
<<: !include common.yaml
 |