#include <binary_output.h>
Definition at line 18 of file binary_output.h.
◆ is_inverted()
bool esphome::output::BinaryOutput::is_inverted |
( |
| ) |
const |
|
inline |
Return whether this binary output is inverted.
Definition at line 61 of file binary_output.h.
◆ set_inverted()
void esphome::output::BinaryOutput::set_inverted |
( |
bool |
inverted | ) |
|
|
inline |
Set the inversion state of this binary output.
Definition at line 21 of file binary_output.h.
◆ set_power_supply()
Use this to connect up a power supply to this output.
Whenever this output is enabled, the power supply will automatically be turned on.
- Parameters
-
power_supply | The PowerSupplyComponent, set this to nullptr to disable the power supply. |
Definition at line 30 of file binary_output.h.
◆ set_state()
virtual void esphome::output::BinaryOutput::set_state |
( |
bool |
state | ) |
|
|
inlinevirtual |
◆ turn_off()
virtual void esphome::output::BinaryOutput::turn_off |
( |
| ) |
|
|
inlinevirtual |
◆ turn_on()
virtual void esphome::output::BinaryOutput::turn_on |
( |
| ) |
|
|
inlinevirtual |
◆ write_state()
virtual void esphome::output::BinaryOutput::write_state |
( |
bool |
state | ) |
|
|
protectedpure virtual |
◆ inverted_
bool esphome::output::BinaryOutput::inverted_ {false} |
|
protected |
◆ power_
The documentation for this class was generated from the following file: