mirror of
https://github.com/esphome/esphome.git
synced 2025-09-26 15:12:21 +01:00
rtttl player (#1171)
* rtttl player * fixes * Cleanup, add action, condition, etc. * add test * updates * fixes * Add better error messages * lint
This commit is contained in:
committed by
GitHub
parent
4996967c79
commit
f6e3070dd8
@@ -13,7 +13,7 @@ class ESP8266PWM : public output::FloatOutput, public Component {
|
||||
void set_pin(GPIOPin *pin) { pin_ = pin; }
|
||||
void set_frequency(float frequency) { this->frequency_ = frequency; }
|
||||
/// Dynamically update frequency
|
||||
void update_frequency(float frequency) {
|
||||
void update_frequency(float frequency) override {
|
||||
this->set_frequency(frequency);
|
||||
this->write_state(this->last_output_);
|
||||
}
|
||||
|
Reference in New Issue
Block a user