This commit is contained in:
mjallen18
2026-04-14 17:15:13 -05:00
parent 38922cd526
commit 9a719479bc
2 changed files with 15 additions and 11 deletions

View File

@@ -90,6 +90,11 @@ font:
- "${TILE5_ICON}" - "${TILE5_ICON}"
- "${TILE6_ICON}" - "${TILE6_ICON}"
image:
- file: "images/home-background.png"
id: bg_home
type: RGB565
sensor: sensor:
- platform: wifi_signal - platform: wifi_signal
name: "Wifi Signal" name: "Wifi Signal"
@@ -283,16 +288,15 @@ touchscreen:
y_min: 340 y_min: 340
y_max: 3860 y_max: 3860
transform: transform:
swap_xy: false swap_xy: true
mirror_x: true mirror_x: true
mirror_y: false mirror_y: true
display: display:
- platform: ili9xxx - platform: ili9xxx
id: my_display id: my_display
spi_id: lcd spi_id: lcd
model: ILI9341 model: ILI9341
data_rate: 20MHz
cs_pin: 15 cs_pin: 15
dc_pin: 2 dc_pin: 2
invert_colors: false invert_colors: false

View File

@@ -91,6 +91,12 @@ lvgl:
scrollable: false scrollable: false
scrollbar_mode: 'OFF' scrollbar_mode: 'OFF'
widgets: widgets:
- image:
id: bg
src: bg_home
x: 0
y: 0
- label: - label:
id: lbl_room id: lbl_room
x: 11 x: 11
@@ -597,18 +603,12 @@ lvgl:
pad_bottom: 0 pad_bottom: 0
border_width: 0 border_width: 0
widgets: widgets:
- obj: - image:
id: brightness_overlay_bg id: brightness_overlay_bg
src: bg_home
x: 0 x: 0
y: 0 y: 0
width: 320
height: 240
bg_color: 0x1a1a2e
bg_opa: COVER
border_width: 0
radius: 0
clickable: true clickable: true
scrollable: false
on_click: on_click:
- lvgl.widget.hide: brightness_overlay - lvgl.widget.hide: brightness_overlay
- obj: - obj: