11 namespace libretiny_pwm {
22 void setup()
override;
45 this->parent_->update_frequency(freq);
void setup() override
Setup LibreTinyPWM.
float get_setup_priority() const override
HARDWARE setup priority.
LibreTinyPWM(InternalGPIOPin *pin)
Base class for all output components that can output a variable level, like PWM.
void dump_config() override
SetFrequencyAction(LibreTinyPWM *parent)
void update_frequency(float frequency) override
Dynamically change frequency at runtime.
const float HARDWARE
For components that deal with hardware and are very important like GPIO switch.
void write_state(float state) override
Override FloatOutput's write_state.
Implementation of SPI Controller mode.
void set_frequency(float frequency)