mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-06 21:09:53 +02:00
rp2040_pwm frequency is per pair of pins (#4061)
This commit is contained in:
@@ -42,9 +42,9 @@ void HOT RP2040PWM::write_state(float state) {
|
||||
state = 1.0f - state;
|
||||
}
|
||||
|
||||
if (frequency_changed_) {
|
||||
if (this->frequency_changed_) {
|
||||
this->setup_pwm_();
|
||||
frequency_changed_ = false;
|
||||
this->frequency_changed_ = false;
|
||||
}
|
||||
|
||||
gpio_set_function(this->pin_->get_pin(), GPIO_FUNC_PWM);
|
||||
|
||||
Reference in New Issue
Block a user