mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
[lvgl] base implementation (#7116)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
0
tests/components/lvgl/common.yaml
Normal file
0
tests/components/lvgl/common.yaml
Normal file
24
tests/components/lvgl/lvgl-package.yaml
Normal file
24
tests/components/lvgl/lvgl-package.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
color:
|
||||
- id: light_blue
|
||||
hex: "3340FF"
|
||||
|
||||
lvgl:
|
||||
bg_color: light_blue
|
||||
widgets:
|
||||
- label:
|
||||
text: Hello world
|
||||
text_color: 0xFF8000
|
||||
align: center
|
||||
text_font: montserrat_40
|
||||
border_post: true
|
||||
|
||||
- label:
|
||||
text: "Hello shiny day"
|
||||
text_color: 0xFFFFFF
|
||||
align: bottom_mid
|
||||
text_font: space16
|
||||
|
||||
font:
|
||||
- file: "gfonts://Roboto"
|
||||
id: space16
|
||||
bpp: 4
|
30
tests/components/lvgl/test.esp32-ard.yaml
Normal file
30
tests/components/lvgl/test.esp32-ard.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
spi:
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
|
||||
i2c:
|
||||
sda: GPIO18
|
||||
scl: GPIO19
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
model: st7789v
|
||||
id: tft_display
|
||||
dimensions:
|
||||
width: 240
|
||||
height: 320
|
||||
transform:
|
||||
swap_xy: false
|
||||
mirror_x: true
|
||||
mirror_y: true
|
||||
data_rate: 80MHz
|
||||
cs_pin: GPIO22
|
||||
dc_pin: GPIO21
|
||||
auto_clear_enabled: false
|
||||
invert_colors: false
|
||||
update_interval: never
|
||||
|
||||
packages:
|
||||
lvgl: !include lvgl-package.yaml
|
||||
|
||||
<<: !include common.yaml
|
52
tests/components/lvgl/test.esp32-idf.yaml
Normal file
52
tests/components/lvgl/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
spi:
|
||||
clk_pin: 14
|
||||
mosi_pin: 13
|
||||
|
||||
i2c:
|
||||
sda: GPIO18
|
||||
scl: GPIO19
|
||||
|
||||
display:
|
||||
- platform: ili9xxx
|
||||
model: st7789v
|
||||
id: second_display
|
||||
dimensions:
|
||||
width: 240
|
||||
height: 320
|
||||
transform:
|
||||
swap_xy: false
|
||||
mirror_x: true
|
||||
mirror_y: true
|
||||
data_rate: 80MHz
|
||||
cs_pin: GPIO20
|
||||
dc_pin: GPIO15
|
||||
auto_clear_enabled: false
|
||||
invert_colors: false
|
||||
update_interval: never
|
||||
|
||||
- platform: ili9xxx
|
||||
model: st7789v
|
||||
id: tft_display
|
||||
dimensions:
|
||||
width: 240
|
||||
height: 320
|
||||
transform:
|
||||
swap_xy: false
|
||||
mirror_x: true
|
||||
mirror_y: true
|
||||
data_rate: 80MHz
|
||||
cs_pin: GPIO22
|
||||
dc_pin: GPIO21
|
||||
auto_clear_enabled: false
|
||||
invert_colors: false
|
||||
update_interval: never
|
||||
|
||||
packages:
|
||||
lvgl: !include lvgl-package.yaml
|
||||
|
||||
lvgl:
|
||||
displays:
|
||||
- tft_display
|
||||
- second_display
|
||||
|
||||
<<: !include common.yaml
|
Reference in New Issue
Block a user