1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 10:52:19 +01:00

[display] filled_ring and filled_gauge methods added (#7420)

This commit is contained in:
Aleksandr Artemev
2024-10-16 05:25:05 +02:00
committed by GitHub
parent fb002ac3b0
commit 3ef31e55ca
3 changed files with 153 additions and 0 deletions

View File

@@ -34,3 +34,7 @@ display:
it.line_at_angle(centerX, centerY, minuteAngle, radius - 5, radius);
}
// Nice ring around and some gauge
it.filled_ring(centerX, centerY, radius+5, radius+8);
it.filled_gauge(centerX, centerY, radius/2, radius/2-5, 66);