[rp2040_pwm] Use register_apply_action for the set_frequency action (#19517)

This commit is contained in:
J. Nick Koston
2026-09-23 23:24:44 +01:00
committed by GitHub
parent 4efeee245c
commit c275365258
3 changed files with 12 additions and 31 deletions
+10
View File
@@ -1,3 +1,13 @@
esphome:
on_boot:
then:
- output.rp2040_pwm.set_frequency:
id: rp2040_pwm_light_output_1
frequency: 100Hz
- output.rp2040_pwm.set_frequency:
id: rp2040_pwm_light_output_2
frequency: !lambda return 200.0f;
output:
- platform: rp2040_pwm
id: rp2040_pwm_light_output_1