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

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...
 

Detailed Description

Use this class when programming with a pwm-out device.

Constructor & Destructor Documentation

◆ pwm_out()

vex::pwm_out::pwm_out ( triport::port port)

Creates a new pwm-out object on the port specified in the parameter.

Parameters
portA reference to a three wire port.

◆ ~pwm_out()

vex::pwm_out::~pwm_out ( )

Member Function Documentation

◆ state()

void vex::pwm_out::state ( int32_t  value,
percentUnits  units 
)

Sets the state of the pwm device.

Parameters
valueSets the length of the pulse width.
unitsThe measurement unit for the state value.