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