VEX V5 Python API
Public Member Functions | List of all members
vex.Pot Class Reference

Inherits vex.TriDevice.

Public Member Functions

def __init__ (self, triport_port)
 Use this class when programming with a potentiometer. More...
 
def value (self, rotationUnits=RotationUnits.DEG)
 Gets the value of the potentiometer in the units defined in the parameter. More...
 

Constructor & Destructor Documentation

◆ __init__()

def vex.Pot.__init__ (   self,
  triport_port 
)

Use this class when programming with a potentiometer.

Member Function Documentation

◆ value()

def vex.Pot.value (   self,
  rotationUnits = RotationUnits.DEG 
)

Gets the value of the potentiometer in the units defined in the parameter.

Parameters
rotationUnitsThe unit type of the value that is returned.
Returns
Returns an integer that represents the unit value specified by the parameter of the potentiometer device.