Color Light Matrix

../_images/sensor_colorlightmatrix.png

../_images/pybricks_variables_set_color_light_matrix.svg

class ColorLightMatrix(port)

LEGO® SPIKE 3x3 Color Light Matrix.

Parameters:

port (Port) – Port to which the device is connected.

../_images/pybricks_blockLightOnColor_colorlightmatrix_on.svg

../_images/pybricks_blockLightOnColor_colorlightmatrix_on_list.svg

awaiton(colors)

Turns the lights on.

Parameters:

colors (Color or list) – If a single Color is given, then all 9 lights are set to that color. If a list of colors is given, then each light is set to that color.

../_images/pybricks_blockLightOnColor_colorlightmatrix_off.svg

awaitoff()

Turns all lights off.