引领#
介绍#
VEX 123 机器人内置 LED 灯,可以发出不同颜色的光。
以下是所有方法的列表:
操作——控制LED灯。
glow— Sets the color of the LED light.
行动#
glow#
glow sets the color of the robot’s LED light.
Usage:
robot.led.glow(color)
范围 |
描述 |
|---|---|
|
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)