cyd
This commit is contained in:
@@ -90,6 +90,11 @@ font:
|
||||
- "${TILE5_ICON}"
|
||||
- "${TILE6_ICON}"
|
||||
|
||||
image:
|
||||
- file: "images/home-background.png"
|
||||
id: bg_home
|
||||
type: RGB565
|
||||
|
||||
sensor:
|
||||
- platform: wifi_signal
|
||||
name: "Wifi Signal"
|
||||
@@ -283,16 +288,15 @@ touchscreen:
|
||||
y_min: 340
|
||||
y_max: 3860
|
||||
transform:
|
||||
swap_xy: false
|
||||
swap_xy: true
|
||||
mirror_x: true
|
||||
mirror_y: false
|
||||
mirror_y: true
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
id: my_display
|
||||
spi_id: lcd
|
||||
model: ILI9341
|
||||
data_rate: 20MHz
|
||||
cs_pin: 15
|
||||
dc_pin: 2
|
||||
invert_colors: false
|
||||
|
||||
@@ -91,6 +91,12 @@ lvgl:
|
||||
scrollable: false
|
||||
scrollbar_mode: 'OFF'
|
||||
widgets:
|
||||
- image:
|
||||
id: bg
|
||||
src: bg_home
|
||||
x: 0
|
||||
y: 0
|
||||
|
||||
- label:
|
||||
id: lbl_room
|
||||
x: 11
|
||||
@@ -597,18 +603,12 @@ lvgl:
|
||||
pad_bottom: 0
|
||||
border_width: 0
|
||||
widgets:
|
||||
- obj:
|
||||
- image:
|
||||
id: brightness_overlay_bg
|
||||
src: bg_home
|
||||
x: 0
|
||||
y: 0
|
||||
width: 320
|
||||
height: 240
|
||||
bg_color: 0x1a1a2e
|
||||
bg_opa: COVER
|
||||
border_width: 0
|
||||
radius: 0
|
||||
clickable: true
|
||||
scrollable: false
|
||||
on_click:
|
||||
- lvgl.widget.hide: brightness_overlay
|
||||
- obj:
|
||||
|
||||
Reference in New Issue
Block a user