VEX V5 C++ API
|
Use this class when programming with a light sensor. More...
Inherits vex::__tridevice.
Public Member Functions | |
light (triport::port &port) | |
Creates a new light object on the port specified in the parameter. More... | |
~light () | |
int32_t | value (analogUnits units) |
Gets the value of the light sensor. More... | |
int32_t | value (percentUnits units) |
Gets the value of the light sensor. More... | |
Use this class when programming with a light sensor.
vex::light::light | ( | triport::port & | port | ) |
Creates a new light object on the port specified in the parameter.
port | A reference to a three wire port. |
vex::light::~light | ( | ) |
int32_t vex::light::value | ( | analogUnits | units | ) |
Gets the value of the light sensor.
units | The measurement unit for the light device. |
|
inline |
Gets the value of the light sensor.
units | The measurement unit for the light device. |