2024-05-07 14:33:37 -05:00
|
|
|
i2c:
|
2025-02-04 17:05:08 -06:00
|
|
|
- id: i2c_cst816
|
|
|
|
scl: ${scl_pin}
|
|
|
|
sda: ${sda_pin}
|
|
|
|
|
|
|
|
spi:
|
|
|
|
- id: spi_ili9xxx
|
|
|
|
clk_pin: ${clk_pin}
|
|
|
|
mosi_pin: ${mosi_pin}
|
2024-05-07 14:33:37 -05:00
|
|
|
|
|
|
|
display:
|
|
|
|
- id: my_display
|
|
|
|
platform: ili9xxx
|
|
|
|
dimensions: 480x320
|
|
|
|
model: ST7796
|
2025-02-04 17:05:08 -06:00
|
|
|
cs_pin: ${cs_pin}
|
|
|
|
dc_pin: ${dc_pin}
|
|
|
|
reset_pin: ${disp_reset_pin}
|
2024-05-07 14:33:37 -05:00
|
|
|
transform:
|
|
|
|
swap_xy: true
|
|
|
|
mirror_x: true
|
|
|
|
mirror_y: true
|
|
|
|
auto_clear_enabled: false
|
2024-08-30 09:20:01 +10:00
|
|
|
invert_colors: false
|
2024-05-07 14:33:37 -05:00
|
|
|
|
2025-02-04 17:05:08 -06:00
|
|
|
touchscreen:
|
|
|
|
- id: ts_cst816
|
|
|
|
platform: cst816
|
|
|
|
interrupt_pin: ${interrupt_pin}
|
|
|
|
reset_pin: ${reset_pin}
|
|
|
|
skip_probe: false
|
|
|
|
transform:
|
|
|
|
mirror_x: false
|
|
|
|
mirror_y: false
|
|
|
|
swap_xy: false
|
2024-05-07 14:33:37 -05:00
|
|
|
|
|
|
|
binary_sensor:
|
|
|
|
- platform: cst816
|
|
|
|
name: Home Button
|