Enhance boot sequence: turn on backlight and execute display update script; adjust touchscreen update interval to 100ms
This commit is contained in:
@@ -5,6 +5,12 @@ substitutions:
|
||||
esphome:
|
||||
name: ${name}
|
||||
friendly_name: ${friendly_name}
|
||||
on_boot:
|
||||
- priority: -10
|
||||
then:
|
||||
- light.turn_on: backlight
|
||||
- delay: 1s
|
||||
- script.execute: update_display
|
||||
|
||||
esp32:
|
||||
board: esp32dev
|
||||
@@ -13,6 +19,7 @@ esp32:
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
level: INFO
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
@@ -70,6 +77,7 @@ display:
|
||||
height: 320
|
||||
id: my_display
|
||||
auto_clear_enabled: false
|
||||
update_interval: never
|
||||
color_palette: 8BIT
|
||||
lambda: |-
|
||||
// Colors
|
||||
@@ -136,7 +144,7 @@ touchscreen:
|
||||
id: my_touchscreen
|
||||
spi_id: tft_spi
|
||||
cs_pin: GPIO33
|
||||
update_interval: 50ms
|
||||
update_interval: 100ms
|
||||
threshold: 400
|
||||
calibration:
|
||||
x_min: 280
|
||||
@@ -259,4 +267,4 @@ font:
|
||||
|
||||
- file: "gfonts://Roboto"
|
||||
id: status_font
|
||||
size: 14
|
||||
size: 14
|
||||
|
||||
Reference in New Issue
Block a user