VEX V5 C++ API
|
Use this class when programming with a led device. More...
Inherits vex::digital_out.
Public Member Functions | |
led (triport::port &port) | |
Creates a new led object on the port specified in the parameter. More... | |
~led () | |
void | on () |
Sets the led device to the on state. More... | |
void | off () |
Sets the led device to the off state. More... | |
![]() | |
digital_out (triport::port &port) | |
Creates a new digital out object on the port specified in the parameter. More... | |
~digital_out () | |
int32_t | value () |
Gets the value of the digital-out device. More... | |
void | set (bool value) |
Sets the digital-out device to a Boolean value. More... | |
operator int () | |
operator bool () | |
void | operator= (const int32_t value) |
Sets the output value of the digital-out device. More... | |
Use this class when programming with a led device.
vex::led::led | ( | triport::port & | port | ) |
Creates a new led object on the port specified in the parameter.
port | A reference to a three wire port. |
vex::led::~led | ( | ) |
void vex::led::on | ( | ) |
Sets the led device to the on state.
void vex::led::off | ( | ) |
Sets the led device to the off state.