LED#
Introduction#
The LED Indicator allows the V5 Brain to turn a connected light-emitting diode (LED) on or off using a 3-Wire Port.

This page uses led_a as the example LED Indicator name. Replace it with your own configured name as needed.
Below is a list of available methods:
Constructor – Manually initialize an LED Indicator.
Led– Create an LED Indicator.
on#
on turns the specified LED Indicator on.
Usage:
led_a.on()
Parameters |
Description |
|---|---|
This method has no parameters. |
off#
off turns the specified LED Indicator off.
Usage:
led_a.off()
Parameters |
Description |
|---|---|
This method has no parameters. |
Constructor#
Constructors are used to manually create Led objects, which are necessary for configuring an LED Indicator outside of VEXcode.
Led#
Led creates an LED Indicator.
Usage:
Led(port)
Parameter |
Description |
|---|---|
|
The 3-Wire Port that the LED Indicator is connected to:
|
# Create an LED Indicator in Port A
led_a = Led(brain.three_wire_port.a)