Refactor master bedroom remote configuration: Update boot sequence to initialize backlight and change display data rate for improved performance
This commit is contained in:
@@ -10,11 +10,18 @@ substitutions:
|
|||||||
esphome:
|
esphome:
|
||||||
name: ${name}
|
name: ${name}
|
||||||
friendly_name: ${friendly_name}
|
friendly_name: ${friendly_name}
|
||||||
|
on_boot:
|
||||||
|
priority: 600
|
||||||
|
then:
|
||||||
|
- output.turn_on: backlight_output
|
||||||
|
- output.set_level:
|
||||||
|
id: backlight_output
|
||||||
|
level: 100%
|
||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
board: esp32dev
|
board: esp32dev
|
||||||
framework:
|
framework:
|
||||||
type: arduino
|
type: esp-idf
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
|
|
||||||
@@ -47,7 +54,7 @@ display:
|
|||||||
model: ili9341
|
model: ili9341
|
||||||
cs_pin: GPIO15
|
cs_pin: GPIO15
|
||||||
dc_pin: GPIO2
|
dc_pin: GPIO2
|
||||||
reset_pin: GPIO4
|
data_rate: 40MHz
|
||||||
rotation: 0
|
rotation: 0
|
||||||
invert_colors: false
|
invert_colors: false
|
||||||
id: my_display
|
id: my_display
|
||||||
@@ -121,11 +128,11 @@ touchscreen:
|
|||||||
output:
|
output:
|
||||||
- platform: ledc
|
- platform: ledc
|
||||||
pin: GPIO21
|
pin: GPIO21
|
||||||
id: backlight_pwm
|
id: backlight_output
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: monochromatic
|
- platform: monochromatic
|
||||||
output: backlight_pwm
|
output: backlight_output
|
||||||
name: "Display Backlight"
|
name: "Display Backlight"
|
||||||
id: backlight
|
id: backlight
|
||||||
restore_mode: ALWAYS_ON
|
restore_mode: ALWAYS_ON
|
||||||
|
|||||||
Reference in New Issue
Block a user