mirror of
https://github.com/esphome/esphome.git
synced 2025-02-12 16:08:19 +00:00
37 lines
785 B
YAML
37 lines
785 B
YAML
|
spi:
|
||
|
- id: spi_main_lcd
|
||
|
clk_pin: ${clk_pin}
|
||
|
mosi_pin: ${mosi_pin}
|
||
|
|
||
|
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);
|