Digital Out#
Introduction#
The Digital Out 3-Wire device allows the V5 Brain to send a digital signal (high or low) to an external component such as an LED, relay, or other electronic device.
This page uses dig_out as the example Digital Out device name. Replace it with your own configured name as needed.
Below is a list of available methods:
set– Sets the signal level of a 3-Wire Digital Out port to high or low.
Constructor – Manually initialize and configure a Digital Out device.
DigitalOut– Create a Digital Out device.
set#
set outputs a high or low signal to the connected Digital Out device.
Usage:
dig_out.set(boolean)
Parameter |
Description |
|---|---|
|
Whether to send a high or low signal:
|
# Send out a low signal from dig_out
dig_out.set(False)
Constructor#
Constructors are used to manually create DigitalOut objects, which are necessary for configuring a Digital Out device outside of VEXcode.
DigitalOut#
DigitalOut creates a Digital Out device.
Usage:
DigitalOut(port)
Parameter |
Description |
|---|---|
|
The 3-Wire Port that the Digital Out device is connected to:
|
# Create a Digital Out device in Port A
dig_out = DigitalOut(brain.three_wire_port.a)