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

Use the device class to get information about all of the vex devices plugged into the V5. More...

Public Member Functions

def __init__ (self)
 
def get (self, index)
 
def type (self, index)
 Get the V5 device type plugged into a specific port. More...
 
def number (self)
 Gets the number of VEX devices that are plugged in. More...
 
def number_of (self, type)
 

Detailed Description

Use the device class to get information about all of the vex devices plugged into the V5.

Constructor & Destructor Documentation

◆ __init__()

def vex.Devices.__init__ (   self)

Member Function Documentation

◆ get()

def vex.Devices.get (   self,
  index 
)

◆ type()

def vex.Devices.type (   self,
  index 
)

Get the V5 device type plugged into a specific port.

Parameters
indexSpecifies the index to look at for the device.
Returns
Returns a V5DeviceType enum value.

◆ number()

def vex.Devices.number (   self)

Gets the number of VEX devices that are plugged in.

Returns
Returns an integer that represent the number of vex devices

◆ number_of()

def vex.Devices.number_of (   self,
  type 
)