mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-10-14 08:35:12 +02:00
mcu-lvgl-trainer, mcu-lvgl-eworkbench: migrate display to mipi_spi
qspi_dbi is deprecated in favor of mipi_spi. Also fixes mcu-lvgl-trainer's LVGL rotation (must be set on the lvgl component, not the display, when LVGL is in use) and its deprecated publish_initial_state -> trigger_on_initial_state. brightness is dropped since mipi_spi only supports it for AMOLED panels and both devices already control backlight separately. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c9358e7bd6
commit
0daecc2fb9
2 files changed
+7
-9
No files matched your search
@@ -116,8 +116,8 @@ light:
|
||||
default_transition_length: 500ms
|
||||
|
||||
display:
|
||||
- platform: qspi_dbi
|
||||
model: axs15231
|
||||
- platform: mipi_spi
|
||||
model: AXS15231
|
||||
data_rate: 40MHz #20mhz is default
|
||||
#spi_mode: MODE2
|
||||
id: main_display
|
||||
@@ -126,8 +126,6 @@ display:
|
||||
height: 480
|
||||
width: 320
|
||||
cs_pin: 45
|
||||
brightness: 50
|
||||
rotation: 90
|
||||
auto_clear_enabled: false
|
||||
# show_test_card: true
|
||||
# lambda: |-
|
||||
@@ -187,7 +185,7 @@ binary_sensor:
|
||||
- platform: homeassistant
|
||||
id: exercise_room_light
|
||||
entity_id: light.exercise_room
|
||||
publish_initial_state: true
|
||||
trigger_on_initial_state: true
|
||||
on_state:
|
||||
then:
|
||||
lvgl.widget.update:
|
||||
@@ -197,7 +195,7 @@ binary_sensor:
|
||||
- platform: homeassistant
|
||||
id: exercise_room_fan
|
||||
entity_id: light.mcu_dimmer_exercise_room_fan
|
||||
publish_initial_state: true
|
||||
trigger_on_initial_state: true
|
||||
on_state:
|
||||
then:
|
||||
lvgl.widget.update:
|
||||
@@ -206,6 +204,7 @@ binary_sensor:
|
||||
checked: !lambda return x;
|
||||
|
||||
lvgl:
|
||||
rotation: 90
|
||||
buffer_size: 100%
|
||||
log_level: WARN
|
||||
color_depth: 16
|
||||
|
||||
Reference in new issue
Block a user