diff --git a/doc/api/pupdevices.rst b/doc/api/pupdevices.rst index cb7bccd..61322eb 100644 --- a/doc/api/pupdevices.rst +++ b/doc/api/pupdevices.rst @@ -116,6 +116,28 @@ Color and Distance Sensor .. automethod:: pybricks.pupdevices::ColorDistanceSensor.light.off +Color Sensor +^^^^^^^^^^^^^^^^^^^^^^^^^ + +.. todo:: Support for this sensor is not yet implemented. API is experimental. + +.. figure:: ../api/images/sensor_color.png + :width: 35 % + +.. autoclass:: pybricks.pupdevices.ColorSensor + :no-members: + + .. rubric:: Built-in lights + + This sensor has a 3 built-in lights. You can adjust the brightness of each + light. If you use the sensor to measure something afterwards, the light + automatically turns back on as needed for the measurement. + + .. automethod:: pybricks.pupdevices::ColorSensor.lights.on + + .. automethod:: pybricks.pupdevices::ColorSensor.lights.off + + .. Tilt Sensor .. ^^^^^^^^^^^^^^^^^^^^^^^^^