Use this class when programming with a digital-out device.
More...
Inherits vex::__tridevice.
Inherited by vex::led, and vex::pneumatics.
Use this class when programming with a digital-out device.
◆ digital_out()
Creates a new digital out object on the port specified in the parameter.
- Parameters
-
port | A reference to a three wire port. |
◆ ~digital_out()
vex::digital_out::~digital_out |
( |
| ) |
|
◆ value()
int32_t vex::digital_out::value |
( |
| ) |
|
Gets the value of the digital-out device.
- Returns
- Returns an integer that represents the value of the digital-out device.
◆ set()
void vex::digital_out::set |
( |
bool |
value | ) |
|
Sets the digital-out device to a Boolean value.
- Parameters
-
value | A true or false Boolean value. |
◆ operator int()
vex::digital_out::operator int |
( |
| ) |
|
◆ operator bool()
vex::digital_out::operator bool |
( |
| ) |
|
◆ operator=()
void vex::digital_out::operator= |
( |
const int32_t |
value | ) |
|
Sets the output value of the digital-out device.
- Parameters
-
value | The value to set the digital-out device. Typically 1 or 0. |