LED-lampa#

Introduktion#

VEX 123-roboten har en inbyggd LED-lampa som kan lysa i olika färger.

Nedan följer en lista över alla metoder:

Åtgärder — Styr LED-lampan.

  • glow — Ställer in färgen på LED-lampan.

Åtgärder#

glow#

glow ställer in färgen på robotens LED-ljus.

Usage:
robot.led.glow(color)

Parameter

Beskrivning

color

Färgen att ställa in lysdioden på:

  • 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)