Pybricks modules
hubs
pupdevices
iodevices
parameters
tools
robotics
Code with blocks
MicroPython modules
micropython
uerrno
uio
ujson
umath
urandom
uselect
ustruct
usys
LEGO® SPIKE 3x3 Color Light Matrix.
port (Port) – Port to which the device is connected.
Turns the lights on.
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.
Color
Turns all lights off.