.. pybricks-requirements::

Color Light Matrix
^^^^^^^^^^^^^^^^^^

.. figure:: ../../main/diagrams/sensor_colorlightmatrix.png
   :width: 35 %

.. blockimg:: pybricks_variables_set_color_light_matrix

.. autoclass:: pybricks.pupdevices.ColorLightMatrix
    :no-members:

    .. blockimg:: pybricks_blockLightOnColor_colorlightmatrix_on

    .. blockimg:: pybricks_blockLightOnColor_colorlightmatrix_on_list

    .. automethod:: pybricks.pupdevices.ColorLightMatrix.on

    .. blockimg:: pybricks_blockLightOnColor_colorlightmatrix_off

    .. automethod:: pybricks.pupdevices.ColorLightMatrix.off
