6 #ifdef USE_POWER_SUPPLY 13 #define LOG_BINARY_OUTPUT(this) \ 14 if (this->inverted_) { \ 15 ESP_LOGCONFIG(TAG, " Inverted: YES"); \ 23 #ifdef USE_POWER_SUPPLY 44 #ifdef USE_POWER_SUPPLY 52 #ifdef USE_POWER_SUPPLY 67 #ifdef USE_POWER_SUPPLY virtual void turn_on()
Enable this binary output.
virtual void turn_off()
Disable this binary output.
virtual void set_state(bool state)
Enable or disable this binary output.
bool is_inverted() const
Return whether this binary output is inverted.
power_supply::PowerSupplyRequester power_
void set_parent(PowerSupply *parent)
void set_power_supply(power_supply::PowerSupply *power_supply)
Use this to connect up a power supply to this output.
virtual void write_state(bool state)=0
Implementation of SPI Controller mode.
void set_inverted(bool inverted)
Set the inversion state of this binary output.