diff --git a/doc/api/pupdevices/light.rst b/doc/api/pupdevices/light.rst index ca397be..08d2868 100644 --- a/doc/api/pupdevices/light.rst +++ b/doc/api/pupdevices/light.rst @@ -4,22 +4,24 @@ Light .. figure:: ../../api/images/light.png :width: 90 % -.. toggle-header:: - :header: **Show/hide examples** - - **Example 1: Making the light blink** - - .. literalinclude:: - ../../../examples/pup/light/basics.py - - **Example 2: Using math to gradually change the brightness of the light** - - .. literalinclude:: - ../../../examples/pup/light/math.py - .. 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