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