Color Light Matrix

../_images/sensor_colorlightmatrix.png
class ColorLightMatrix(port)

LEGO® SPIKE 3x3 Color Light Matrix.

Parameters

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

on(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.

off()

Turns all lights off.