LED#

To make LED blocks appear in VEXcode V5, a 3-Wire LED Indicator must be configured in the Devices window.

For more information, refer to these articles:

Set LED#

The Set LED block is used to turn an LED on or off.

aria-description goes here#
  set [LED3C v] [on v]   

Select which LED to use.

Image showing the Set LED block used to control LED settings on the V5 Brain or Controller.

Select whether to turn the LED on or off. This is permanent until the Set LED block is used again. By default, an LED is set to Off.

Icon depicting the Set LED block used to control LED states on the V5 Brain or Controller.

In this example, the LED is turned on for two seconds before turning off.

aria-description goes here#
  when started :: hat events
  [Turn LED on.]
  set [LED3C v] [on v]
  [Turn LED off after 2 seconds.]
  wait (2) seconds
  set [LED3C v] [off v]