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

Inherits vex.DigitalOut.

Public Member Functions

def __init__ (self, triport_port)
 Use this class when programming with a pneumatics device. More...
 
def open (self)
 Sets the pneumatics device to the solenoid open state allowing air to flow into the cylinder. More...
 
def close (self)
 Sets the pneumatics device to the solenoid close state stopping air flowing into the cylinder. More...
 
def value (self)
 Gets the value of the digital out device. More...
 
def set (self, is_set)
 Sets the digital out device to a Boolean value. More...
 
def is_set (self)
 

Constructor & Destructor Documentation

◆ __init__()

def vex.Pneumatics.__init__ (   self,
  triport_port 
)

Use this class when programming with a pneumatics device.

Reimplemented from vex.DigitalOut.

Member Function Documentation

◆ open()

def vex.Pneumatics.open (   self)

Sets the pneumatics device to the solenoid open state allowing air to flow into the cylinder.

◆ close()

def vex.Pneumatics.close (   self)

Sets the pneumatics device to the solenoid close state stopping air flowing into the cylinder.

◆ value()

def vex.DigitalOut.value (   self)
inherited

Gets the value of the digital out device.

Returns
Returns an integer that represents the value of the digital out device.

◆ set()

def vex.DigitalOut.set (   self,
  is_set 
)
inherited

Sets the digital out device to a Boolean value.

Parameters
is_setA true or false Boolean value.

◆ is_set()

def vex.DigitalOut.is_set (   self)
inherited