Light

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).

Constants

  1. POWER=0
  2. CONNECT=1

Color(integer light, integer color)

Returns

None
Sets the color of the provided button.

Parameters

  1. 1.integerlight

    Which light to change the color of (POWER or CONNECT)

  2. 2.integercolor

    The color to change the light to (from the Spike Color class)

Example

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)