Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 557 Bytes

light.rst

File metadata and controls

29 lines (19 loc) · 557 Bytes
.. pybricks-requirements::

Light

../../main/cad/output/pupdevice-light.png
.. autoclass:: pybricks.pupdevices.Light
    :no-members:

    .. automethod:: pybricks.pupdevices.Light.on

    .. automethod:: pybricks.pupdevices.Light.off

Examples

Making the light blink

.. literalinclude::
    ../../../examples/pup/light/basics.py

Gradually change the brightness

.. literalinclude::
    ../../../examples/pup/light/math.py