2024-07-25 01:12:04 +02:00
|
|
|
spi:
|
|
|
|
clk_pin: 14
|
|
|
|
mosi_pin: 13
|
|
|
|
|
|
|
|
i2c:
|
|
|
|
sda: GPIO18
|
|
|
|
scl: GPIO19
|
|
|
|
|
|
|
|
display:
|
|
|
|
- platform: ili9xxx
|
|
|
|
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
|
|
|
|
|
2024-08-06 21:15:28 +02:00
|
|
|
binary_sensor:
|
|
|
|
- platform: gpio
|
|
|
|
internal: true
|
|
|
|
id: up_button
|
|
|
|
pin:
|
|
|
|
number: GPIO38
|
|
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
|
|
internal: true
|
|
|
|
id: down_button
|
|
|
|
pin:
|
|
|
|
number: GPIO37
|
|
|
|
inverted: true
|
|
|
|
- platform: gpio
|
|
|
|
internal: true
|
|
|
|
id: select_button
|
|
|
|
pin:
|
|
|
|
number: GPIO39
|
|
|
|
inverted: true
|
|
|
|
lvgl:
|
|
|
|
encoders:
|
|
|
|
group: switches
|
2024-08-13 10:06:01 +02:00
|
|
|
initial_focus: button_button
|
2024-08-06 21:15:28 +02:00
|
|
|
enter_button: select_button
|
|
|
|
sensor:
|
|
|
|
left_button: up_button
|
|
|
|
right_button: down_button
|
|
|
|
|
2024-07-25 01:12:04 +02:00
|
|
|
packages:
|
|
|
|
lvgl: !include lvgl-package.yaml
|
|
|
|
|
|
|
|
<<: !include common.yaml
|