The light class is used to change the color of the light of the Bluetooth connection button and the central hub button (the power button).
POWER=0
CONNECT=1
None
integerlight
Which light to change the color of (POWER or CONNECT)
integercolor
The color to change the light to (from the Spike Color class)
1
2
3
4
5
6
use Libraries.Robots.Spike.Light
use Libraries.Robots.Spike.Color
Color color
Light light
light:Color(light:POWER, color:BLUE)
light:Color(light:CONNECT, color:RED)