VEX V5 C++ API
|
Use this class when programming with a pwm-out device. More...
Inherits vex::__tridevice.
Public Member Functions | |
pwm_out (triport::port &port) | |
Creates a new pwm-out object on the port specified in the parameter. More... | |
~pwm_out () | |
void | state (int32_t value, percentUnits units) |
Sets the state of the pwm device. More... | |
Use this class when programming with a pwm-out device.
vex::pwm_out::pwm_out | ( | triport::port & | port | ) |
Creates a new pwm-out object on the port specified in the parameter.
port | A reference to a three wire port. |
vex::pwm_out::~pwm_out | ( | ) |
void vex::pwm_out::state | ( | int32_t | value, |
percentUnits | units | ||
) |
Sets the state of the pwm device.
value | Sets the length of the pulse width. |
units | The measurement unit for the state value. |