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

Use the device class to get information about a vex device plugged into the V5. More...

Inherited by vex.Brain, vex.Controller, vex.Distance, vex.Inertial, vex.Motor, vex.Motor29, vex.MotorVictor, vex.Optical, vex.Rotation, vex.Triport, and vex.Vision.

Public Member Functions

def __init__ (self, index=None)
 
def type (self)
 Get the device type. More...
 
def installed (self)
 Gets the status of what is installed. More...
 
def value (self)
 

Detailed Description

Use the device class to get information about a vex device plugged into the V5.

Constructor & Destructor Documentation

◆ __init__()

def vex.Device.__init__ (   self,
  index = None 
)

Member Function Documentation

◆ type()

def vex.Device.type (   self)

Get the device type.

Returns
V5DeviceType enum value

◆ installed()

def vex.Device.installed (   self)

Gets the status of what is installed.

Returns
Returns a true Boolean if the triport is installed. Returns a false Boolean if the triport is not installed.

◆ value()

def vex.Device.value (   self)