CONDUJO#

Introducción#

El robot VEX 123 tiene una luz LED incorporada que puede brillar en diferentes colores.

A continuación se muestra una lista de todos los métodos:

Acciones: Controlar la luz LED.

  • glow — Sets the color of the LED light.

Comportamiento#

glow#

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

Usage:
robot.led.glow(color)

Parámetro

Descripción

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)