mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 01:07:45 +01:00
18149bc276
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
35 lines
674 B
YAML
35 lines
674 B
YAML
spi:
|
|
- id: spi_main_lcd
|
|
clk_pin: 6
|
|
mosi_pin: 7
|
|
miso_pin: 5
|
|
|
|
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: 8
|
|
dc_pin: 9
|
|
reset_pin: 10
|
|
lambda: |-
|
|
it.rectangle(0, 0, it.get_width(), it.get_height());
|
|
- platform: ili9xxx
|
|
dimensions:
|
|
width: 320
|
|
height: 240
|
|
offset_width: 20
|
|
offset_height: 10
|
|
model: TFT 2.4
|
|
cs_pin: 2
|
|
dc_pin: 3
|
|
reset_pin: 4
|
|
auto_clear_enabled: false
|
|
rotation: 90
|
|
lambda: |-
|
|
it.fill(Color::WHITE);
|