1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 11:22:24 +01:00

[lvgl] Bugfixes #3 (#7472)

This commit is contained in:
Clyde Stubbs
2024-10-07 11:27:08 +11:00
committed by GitHub
parent cbc03aae80
commit 81f6750211
16 changed files with 148 additions and 76 deletions

View File

@@ -2,13 +2,13 @@ spi:
- id: spi_main_lcd
clk_pin: 16
mosi_pin: 17
miso_pin: 15
miso_pin: 32
display:
- platform: ili9xxx
id: main_lcd
model: ili9342
cs_pin: 12
cs_pin: 14
dc_pin: 13
reset_pin: 21
invert_colors: true

View File

@@ -8,8 +8,8 @@ display:
- platform: ili9xxx
id: main_lcd
model: ili9342
cs_pin: 8
dc_pin: 9
cs_pin: 3
dc_pin: 11
reset_pin: 10
invert_colors: true

View File

@@ -8,8 +8,8 @@ display:
- platform: ili9xxx
id: main_lcd
model: ili9342
cs_pin: 8
dc_pin: 9
cs_pin: 3
dc_pin: 11
reset_pin: 10
invert_colors: true

View File

@@ -2,13 +2,13 @@ spi:
- id: spi_main_lcd
clk_pin: 16
mosi_pin: 17
miso_pin: 15
miso_pin: 18
display:
- platform: ili9xxx
id: main_lcd
model: ili9342
cs_pin: 12
cs_pin: 19
dc_pin: 13
reset_pin: 21
invert_colors: true

View File

@@ -608,6 +608,58 @@ lvgl:
id: tabview_id
index: 0
animated: true
- meter:
height: 200px
width: 200px
indicator:
bg_color: 0xFF
radius: 0
bg_opa: TRANSP
text_color: 0xFFFFFF
scales:
- ticks:
width: 1
count: 61
length: 20
color: 0xFFFFFF
range_from: 0
range_to: 60
angle_range: 360
rotation: 270
indicators:
- line:
opa: 50%
id: minute_hand
color: 0xFF0000
r_mod: -1
width: 3
-
angle_range: 330
rotation: 300
range_from: 1
range_to: 12
ticks:
width: 1
count: 12
length: 1
major:
stride: 1
width: 4
length: 8
color: 0xC0C0C0
label_gap: 6
- angle_range: 360
rotation: 270
range_from: 0
range_to: 720
indicators:
- line:
id: hour_hand
value: 180
width: 4
color: 0xA0A0A0
r_mod: -20
font:
- file: "gfonts://Roboto"
id: space16

View File

@@ -10,7 +10,7 @@ sensor:
- platform: rotary_encoder
name: "Rotary Encoder"
id: encoder
pin_a: 2
pin_a: 3
pin_b: 1
internal: true