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

Inherits vex.TriDevice.

Public Member Functions

def __init__ (self, triport_port)
 Use this class when programming with the limit switch. More...
 
def value (self)
 Gets the value of the limit switch. More...
 
def pressing (self)
 Gets the state of the limit device. More...
 

Constructor & Destructor Documentation

◆ __init__()

def vex.Limit.__init__ (   self,
  triport_port 
)

Use this class when programming with the limit switch.

Member Function Documentation

◆ value()

def vex.Limit.value (   self)

Gets the value of the limit switch.

Returns
Returns an integer that represents the value of the limit device.

◆ pressing()

def vex.Limit.pressing (   self)

Gets the state of the limit device.

Returns
Returns the state of the limit device.