1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

[lvgl] Make line points templatable (#8502)

This commit is contained in:
Clyde Stubbs
2025-04-09 09:03:29 +10:00
committed by GitHub
parent 1c72fd4674
commit 6240bfff97
8 changed files with 80 additions and 38 deletions

View File

@@ -614,6 +614,8 @@ lvgl:
align: center
points:
- 5, 5
- x: !lambda return random_uint32() % 100;
y: !lambda return random_uint32() % 100;
- 70, 70
- 120, 10
- 180, 60
@@ -622,6 +624,14 @@ lvgl:
- lvgl.line.update:
id: lv_line_id
line_color: 0xFFFF
points:
- 5, 5
- x: !lambda return random_uint32() % 100;
y: !lambda return random_uint32() % 100;
- 70, 70
- 120, 10
- 180, 60
- 240, 10
- lvgl.page.next:
- switch:
align: right_mid