ESPHome
2024.8.3
|
This class allows to control the EMC2101 output. More...
#include <emc2101_output.h>
Public Member Functions | |
EMC2101Output (Emc2101Component *parent) | |
![]() | |
void | set_max_power (float max_power) |
Set the maximum power output of this component. More... | |
void | set_min_power (float min_power) |
Set the minimum power output of this component. More... | |
void | set_zero_means_zero (bool zero_means_zero) |
Sets this output to ignore min_power for a 0 state. More... | |
void | set_level (float state) |
Set the level of this float output, this is called from the front-end. More... | |
virtual void | update_frequency (float frequency) |
Set the frequency of the output for PWM outputs. More... | |
float | get_max_power () const |
Get the maximum power output. More... | |
float | get_min_power () const |
Get the minimum power output. More... | |
![]() | |
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 (float state) override |
Used by ESPHome framework. More... | |
![]() | |
void | write_state (bool state) override |
Implement BinarySensor's write_enabled; this should never be called. More... | |
Protected Attributes | |
Emc2101Component * | parent_ |
![]() | |
float | max_power_ {1.0f} |
float | min_power_ {0.0f} |
bool | zero_means_zero_ |
![]() | |
bool | inverted_ {false} |
power_supply::PowerSupplyRequester | power_ {} |
This class allows to control the EMC2101 output.
Definition at line 10 of file emc2101_output.h.
|
inline |
Definition at line 12 of file emc2101_output.h.
|
overrideprotectedvirtual |
Used by ESPHome framework.
Implements esphome::output::FloatOutput.
Definition at line 6 of file emc2101_output.cpp.
|
protected |
Definition at line 18 of file emc2101_output.h.