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

Inherits vex.DigitalOut.

Public Member Functions

def __init__ (self, triport_port)
 Use this class when programming with a led device. More...
 
def on (self)
 Sets the led device to the on state. More...
 
def off (self)
 Sets the led device to the off state. 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.Led.__init__ (   self,
  triport_port 
)

Use this class when programming with a led device.

Reimplemented from vex.DigitalOut.

Member Function Documentation

◆ on()

def vex.Led.on (   self)

Sets the led device to the on state.

◆ off()

def vex.Led.off (   self)

Sets the led device to the off state.

◆ 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