psram:
speed: 80MHz
output:
- platform: ledc
pin: GPIO42
id: backlight_pwm
- platform: gpio
pin: GPIO36
id: relay
light:
- platform: monochromatic
name: "Backlight"
id: backlight
output: backlight_pwm
restore_mode: ALWAYS_ON
- platform: binary
id: local_light
name: "Light"
output: relay
power_supply:
- id: "i80_rd_pin"
pin:
number: 18
inverted: true
spi:
type: octal
clk_pin: GPIO13
data_pins:
- GPIO6
- GPIO7
- GPIO15
- GPIO16
- GPIO10
- GPIO9
- ignore_strapping_warning: true
number: GPIO46
- ignore_strapping_warning: true
number: GPIO3
i2c:
sda: GPIO35
scl:
ignore_strapping_warning: true
number: GPIO0
display:
- id: langbon_L9
platform: mipi_spi
model: CUSTOM
invert_colors: true
dimensions:
height: 320
width: 170
offset_width: 35
bus_mode: octal
dc_pin: GPIO17
cs_pin: GPIO21
reset_pin: GPIO4
auto_clear_enabled: false
update_interval: never
rotation: 0
touchscreen:
platform: ft63x6
calibration:
x_min: 0
y_min: 3
x_max: 169
y_max: 319
on_release:
- if:
condition: lvgl.is_paused
then:
- lvgl.resume:
- lvgl.widget.redraw:
- light.turn_on: backlight
lvgl:
on_idle:
timeout: !lambda "return 10000;"
then:
- light.turn_off: backlight
- lvgl.pause:
pages: ...