Update lvgl.rst

This commit is contained in:
H. Árkosi Róbert 2024-05-07 16:59:07 +02:00
parent 9e90d7fc82
commit e2b1f83256
1 changed files with 15 additions and 15 deletions

View File

@ -1673,21 +1673,6 @@ The configured message boxes are hidden by default. One can show them with ``lvg
Actions
-------
``lvgl.update``
***************
This :ref:`action <config-action>` allows changing on the fly the ``disp_bg_color`` or ``disp_bg_image`` configuration options of the main component, making it possible to use change the background color or wallpaper at any time.
.. code-block:: yaml
# Examples:
on_...:
then:
- lvgl.update:
disp_bg_color: 0x0000FF
- lvgl.update:
disp_bg_image: cat_image
Specific actions are available for certain widgets, they are described above in their respective section. Some universal actions are available for all the widgets or for LVGL itself:
.. _lvgl-objupd-act:
@ -1790,6 +1775,21 @@ This :ref:`action <config-action>` resumes the activity of LVGL, including rende
then:
- lvgl.resume:
``lvgl.update``
***************
This :ref:`action <config-action>` allows changing on the fly the ``disp_bg_color`` or ``disp_bg_image`` configuration options of the main component, making it possible to use change the background color or wallpaper at any time.
.. code-block:: yaml
# Examples:
on_...:
then:
- lvgl.update:
disp_bg_color: 0x0000FF
- lvgl.update:
disp_bg_image: cat_image
.. _lvgl-pgnx-act:
``lvgl.page.next``, ``lvgl.page.previous``