11 namespace esp8266_pwm {
24 void setup()
override;
45 this->parent_->update_frequency(freq);
void dump_config() override
SetFrequencyAction(ESP8266PWM *parent)
Base class for all output components that can output a variable level, like PWM.
float get_setup_priority() const override
HARDWARE setup_priority.
void write_state(float state) override
float last_output_
Cache last output level for dynamic frequency updating.
void set_pin(InternalGPIOPin *pin)
void setup() override
Initialize pin.
void update_frequency(float frequency) override
Dynamically update frequency.
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
Implementation of SPI Controller mode.
void set_frequency(float frequency)