ESPHome
2024.11.0
|
#include <template_output.h>
Public Member Functions | |
Trigger< bool > * | get_trigger () const |
Public Member Functions inherited from esphome::output::BinaryOutput | |
void | set_inverted (bool inverted) |
Set the inversion state of this binary output. More... | |
void | set_power_supply (power_supply::PowerSupply *power_supply) |
Use this to connect up a power supply to this output. More... | |
virtual void | set_state (bool state) |
Enable or disable this binary output. More... | |
virtual void | turn_on () |
Enable this binary output. More... | |
virtual void | turn_off () |
Disable this binary output. More... | |
bool | is_inverted () const |
Return whether this binary output is inverted. More... | |
Protected Member Functions | |
void | write_state (bool state) override |
Protected Attributes | |
Trigger< bool > * | trigger_ = new Trigger<bool>() |
Protected Attributes inherited from esphome::output::BinaryOutput | |
bool | inverted_ {false} |
power_supply::PowerSupplyRequester | power_ {} |
Definition at line 10 of file template_output.h.
|
inline |
Definition at line 12 of file template_output.h.
|
inlineoverrideprotectedvirtual |
Implements esphome::output::BinaryOutput.
Definition at line 15 of file template_output.h.
Definition at line 17 of file template_output.h.