VEX EDR Python API
Public Member Functions | List of all members
vex.DigitalOutput Class Reference

Config Digital output pin with on/off state. More...

Public Member Functions

def __init__ (self, digitalnum)
 
def on (self)
 Turn the output on. More...
 
def off (self)
 Turn the output off. More...
 
def is_on (self, value=None)
 Get or set the output state: on (True) or off (False). More...
 

Detailed Description

Config Digital output pin with on/off state.

Parameters
digitalnumdigital port the output is connected to (1-12)

Constructor & Destructor Documentation

◆ __init__()

def vex.DigitalOutput.__init__ (   self,
  digitalnum 
)

Member Function Documentation

◆ on()

def vex.DigitalOutput.on (   self)

Turn the output on.

◆ off()

def vex.DigitalOutput.off (   self)

Turn the output off.

◆ is_on()

def vex.DigitalOutput.is_on (   self,
  value = None 
)

Get or set the output state: on (True) or off (False).

Parameters
valueset to True (on) or False (off). Omit to get current value.
Returns
bool (if value not specified)