mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-03 16:41:50 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
		
			708 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			708 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
display:
 | 
						|
  - platform: ili9xxx
 | 
						|
    invert_colors: true
 | 
						|
    dimensions: 320x240
 | 
						|
    transform:
 | 
						|
      swap_xy: true
 | 
						|
      mirror_x: true
 | 
						|
      mirror_y: false
 | 
						|
    model: TFT 2.4
 | 
						|
    color_palette: GRAYSCALE
 | 
						|
    cs_pin: ${cs_pin1}
 | 
						|
    dc_pin: ${dc_pin1}
 | 
						|
    reset_pin: ${reset_pin1}
 | 
						|
    lambda: |-
 | 
						|
      it.rectangle(0, 0, it.get_width(), it.get_height());
 | 
						|
  - platform: ili9xxx
 | 
						|
    invert_colors: false
 | 
						|
    color_palette: 8bit
 | 
						|
    dimensions:
 | 
						|
      width: 320
 | 
						|
      height: 240
 | 
						|
      offset_width: 20
 | 
						|
      offset_height: 10
 | 
						|
    model: TFT 2.4
 | 
						|
    cs_pin: ${cs_pin2}
 | 
						|
    dc_pin: ${dc_pin2}
 | 
						|
    reset_pin: ${reset_pin2}
 | 
						|
    auto_clear_enabled: false
 | 
						|
    rotation: 90
 | 
						|
    lambda: |-
 | 
						|
      it.fill(Color::WHITE);
 |