27 void setup()
override;
51 float freq = this->frequency_.value(
x...);
void update_frequency(float frequency) override
Dynamically change frequency at runtime.
float get_setup_priority() const override
HARDWARE setup priority.
void set_phase_angle(float angle)
void set_frequency(float frequency)
void setup() override
Setup LEDC.
void write_state(float state) override
Override FloatOutput's write_state.
LEDCOutput(InternalGPIOPin *pin)
void set_channel(uint8_t channel)
void dump_config() override
TEMPLATABLE_VALUE(float, frequency)
SetFrequencyAction(LEDCOutput *parent)
Base class for all output components that can output a variable level, like PWM.
uint8_t next_ledc_channel
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Providing packet encoding functions for exchanging data with a remote host.