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

Inherits vex.TriDevice.

Inherited by vex.Led, and vex.Pneumatics.

Public Member Functions

def __init__ (self, triport_port)
 Use this class when programming with a digital out device. 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.DigitalOut.__init__ (   self,
  triport_port 
)

Use this class when programming with a digital out device.

Reimplemented in vex.Pneumatics, and vex.Led.

Member Function Documentation

◆ value()

def vex.DigitalOut.value (   self)

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 
)

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)