From 38ef9407c5443b3c42151fb4ad24cc5e5f1b2932 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 18 Dec 2024 08:44:18 +1300 Subject: [PATCH] Update Corrected index.rst (#4507) The previous yaml code had errors which I corrected here. It may not be all the errors. I did not test tall the code on the page. Co-authored-by: Gary Rubin --- components/display/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/display/index.rst b/components/display/index.rst index 9b0006fd0..43f3ba8e8 100644 --- a/components/display/index.rst +++ b/components/display/index.rst @@ -127,10 +127,10 @@ Now that you know a bit more about ESPHome's coordinate system, let's draw some // Ring and half-ring. First draw the circle with a hole in it // at [75,75] with inner raduis of 20 and outer of 30 - id.filled_ring(75, 75, 30, 20); + it.filled_ring(75, 75, 30, 20); // and a "gauge": half-ring that is partially filled. // Same position and size but 80% filled left to right - id.filled_gauge(75, 75, 30, 20, 80) + it.filled_gauge(75, 75, 30, 20, 80); // Triangles... Let's draw the outline of a triangle from the [x,y] coordinates of its three points // [25,5], [100,5], [80,25]