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

Inherits vex.TriDevice.

Public Member Functions

def __init__ (self, triport_port)
 Use this class when programming with the bumper device. More...
 
def value (self)
 Gets the value of the bumper device. More...
 
def pressing (self)
 Get the pressed status of the bumper device. More...
 

Constructor & Destructor Documentation

◆ __init__()

def vex.Bumper.__init__ (   self,
  triport_port 
)

Use this class when programming with the bumper device.

Member Function Documentation

◆ value()

def vex.Bumper.value (   self)

Gets the value of the bumper device.

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

◆ pressing()

def vex.Bumper.pressing (   self)

Get the pressed status of the bumper device.

Returns
Returns the state of the bumper device. If it is pressed it will return a one. If unpressed, it will return a zero.