LEVADO#
Introdução#
O robô VEX 123 possui uma luz LED integrada que pode emitir diferentes cores.
Segue-se uma lista de todos os métodos:
Ações — Controlar a luz LED.
glow— Define a cor da luz LED.
Ações#
glow#
glow define a cor da luz LED do robô.
Usage:
robot.led.glow(color)
Parâmetro |
Descrição |
|---|---|
|
A cor para definir o LED:
|
# Blink the LED light forever
while True:
robot.led.glow(GREEN)
wait(0.5, SECONDS)
robot.led.glow(OFF)
wait(0.5, SECONDS)