LED#

Introduction#

The VEX 123 Robot has a built-in LED light that can glow different colors.

Below is a list of all methods:

Actions — Control the LED light.

  • glow — Sets the color of the LED light.

Actions#

glow#

glow sets the color of the robot’s LED light.

Usage:
robot.led.glow(color)

Parameter

Description

color

The color to set the LED to:

  • BLUE
  • GREEN
  • OFF
  • PURPLE

# Blink the LED light forever
while True:
    robot.led.glow(GREEN)
    wait(0.5, SECONDS)
    robot.led.glow(OFF)
    wait(0.5, SECONDS)