Update index.rst (#2574)

* Update index.rst

* Update index.rst

* Update index.rst

* Update index.rst

---------

Co-authored-by: H. Árkosi Róbert <robreg@zsurob.hu>
This commit is contained in:
lillborje71 2023-02-05 20:39:25 +01:00 committed by GitHub
parent 18feec5037
commit 798b47dc5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,6 +203,13 @@ them to zero.
// perform action: // perform action:
call.perform(); call.perform();
Shorter example using auto call , call.set_brightness and call.perform.
.. code-block:: cpp
id(light_1).turn_on().set_brightness(1.0).perform();
.. note:: .. note::
The ``red``, ``green`` and ``blue`` values only control the color of the light, not its The ``red``, ``green`` and ``blue`` values only control the color of the light, not its