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 |
|---|---|
|
The color to set the LED to:
|
# Blink the LED light forever
while True:
robot.led.glow(GREEN)
wait(0.5, SECONDS)
robot.led.glow(OFF)
wait(0.5, SECONDS)