27 void setup()
override;
52 this->parent_->update_frequency(freq);
Base class for all output components that can output a variable level, like PWM.
SetFrequencyAction(LEDCOutput *parent)
float get_setup_priority() const override
HARDWARE setup priority.
uint8_t next_ledc_channel
void update_frequency(float frequency) override
Dynamically change frequency at runtime.
void set_phase_angle(float angle)
void write_state(float state) override
Override FloatOutput's write_state.
void set_channel(uint8_t channel)
void setup() override
Setup LEDC.
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
void dump_config() override
LEDCOutput(InternalGPIOPin *pin)
Implementation of SPI Controller mode.
void set_frequency(float frequency)