From 99aeaea596bb799c125aed64cbf9394ae1f76010 Mon Sep 17 00:00:00 2001 From: Joseph Chiocchi Date: Wed, 2 Oct 2024 12:02:01 -0500 Subject: [PATCH] Update lvgl.rst - Prevent burn-in of LCD recipe fix This removes an extraneous `lvgl.pause:` step under the `turn_off_action` which would result in: 1. lvgl is resumed 2. the screen is redrawn 3. lvgl is paused again (without `show_snow: true`, which is unnecessary) Now the logic is fixed to where it is not paused again after redrawing. 1. lvgl is resumed 2. the screen is redrawn I also took out the `delay: 1s` under both actions because they weren't explained as being necessary and elsewhere [where `lvgl.widget.redraw` is used][turn-off-screen-when-idle-recipe], there is no subsequent delay added. [turn-off-screen-when-idle-recipe]: https://esphome.io/cookbook/lvgl.html#turn-off-screen-when-idle --- cookbook/lvgl.rst | 3 --- 1 file changed, 3 deletions(-) diff --git a/cookbook/lvgl.rst b/cookbook/lvgl.rst index bd90892926..92d52efc4d 100644 --- a/cookbook/lvgl.rst +++ b/cookbook/lvgl.rst @@ -2204,7 +2204,6 @@ In the example below, pixel training is done four times for a half an hour every then: - lvgl.resume: - lvgl.widget.redraw: - - delay: 1s - lvgl.pause: show_snow: true turn_off_action: @@ -2214,8 +2213,6 @@ In the example below, pixel training is done four times for a half an hour every then: - lvgl.resume: - lvgl.widget.redraw: - - delay: 1s - - lvgl.pause: touchscreen: - platform: ...