VEX V5 C++ API
Public Member Functions | List of all members
vex::led Class Reference

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...
 
- Public Member Functions inherited from vex::digital_out
 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...
 

Detailed Description

Use this class when programming with a led device.

Constructor & Destructor Documentation

◆ led()

vex::led::led ( triport::port port)

Creates a new led object on the port specified in the parameter.

Parameters
portA reference to a three wire port.

◆ ~led()

vex::led::~led ( )

Member Function Documentation

◆ on()

void vex::led::on ( )

Sets the led device to the on state.

◆ off()

void vex::led::off ( )

Sets the led device to the off state.