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
@@ -105,8 +105,8 @@ power_supply:
|
|||||||
enable_on_boot: true
|
enable_on_boot: true
|
||||||
|
|
||||||
display:
|
display:
|
||||||
- platform: qspi_dbi
|
- platform: mipi_spi
|
||||||
model: axs15231
|
model: AXS15231
|
||||||
data_rate: 40MHz #20mhz is default
|
data_rate: 40MHz #20mhz is default
|
||||||
#spi_mode: MODE2
|
#spi_mode: MODE2
|
||||||
id: main_display
|
id: main_display
|
||||||
@@ -115,7 +115,6 @@ display:
|
|||||||
height: 480
|
height: 480
|
||||||
width: 320
|
width: 320
|
||||||
cs_pin: 45
|
cs_pin: 45
|
||||||
brightness: 50
|
|
||||||
rotation: 90
|
rotation: 90
|
||||||
auto_clear_enabled: false
|
auto_clear_enabled: false
|
||||||
show_test_card: true
|
show_test_card: true
|
||||||
|
|||||||
@@ -116,8 +116,8 @@ light:
|
|||||||
default_transition_length: 500ms
|
default_transition_length: 500ms
|
||||||
|
|
||||||
display:
|
display:
|
||||||
- platform: qspi_dbi
|
- platform: mipi_spi
|
||||||
model: axs15231
|
model: AXS15231
|
||||||
data_rate: 40MHz #20mhz is default
|
data_rate: 40MHz #20mhz is default
|
||||||
#spi_mode: MODE2
|
#spi_mode: MODE2
|
||||||
id: main_display
|
id: main_display
|
||||||
@@ -126,8 +126,6 @@ display:
|
|||||||
height: 480
|
height: 480
|
||||||
width: 320
|
width: 320
|
||||||
cs_pin: 45
|
cs_pin: 45
|
||||||
brightness: 50
|
|
||||||
rotation: 90
|
|
||||||
auto_clear_enabled: false
|
auto_clear_enabled: false
|
||||||
# show_test_card: true
|
# show_test_card: true
|
||||||
# lambda: |-
|
# lambda: |-
|
||||||
@@ -187,7 +185,7 @@ binary_sensor:
|
|||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: exercise_room_light
|
id: exercise_room_light
|
||||||
entity_id: light.exercise_room
|
entity_id: light.exercise_room
|
||||||
publish_initial_state: true
|
trigger_on_initial_state: true
|
||||||
on_state:
|
on_state:
|
||||||
then:
|
then:
|
||||||
lvgl.widget.update:
|
lvgl.widget.update:
|
||||||
@@ -197,7 +195,7 @@ binary_sensor:
|
|||||||
- platform: homeassistant
|
- platform: homeassistant
|
||||||
id: exercise_room_fan
|
id: exercise_room_fan
|
||||||
entity_id: light.mcu_dimmer_exercise_room_fan
|
entity_id: light.mcu_dimmer_exercise_room_fan
|
||||||
publish_initial_state: true
|
trigger_on_initial_state: true
|
||||||
on_state:
|
on_state:
|
||||||
then:
|
then:
|
||||||
lvgl.widget.update:
|
lvgl.widget.update:
|
||||||
@@ -206,6 +204,7 @@ binary_sensor:
|
|||||||
checked: !lambda return x;
|
checked: !lambda return x;
|
||||||
|
|
||||||
lvgl:
|
lvgl:
|
||||||
|
rotation: 90
|
||||||
buffer_size: 100%
|
buffer_size: 100%
|
||||||
log_level: WARN
|
log_level: WARN
|
||||||
color_depth: 16
|
color_depth: 16
|
||||||
|
|||||||
Reference in new issue
Block a user