Skip to content

Commit

Permalink
Update lvgl.rst - Prevent burn-in of LCD recipe fix
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yyolk authored Oct 2, 2024
1 parent ceb211d commit 99aeaea
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cookbook/lvgl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: ...
Expand Down

0 comments on commit 99aeaea

Please sign in to comment.