mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 03:16:37 +00:00
[rp2040_pwm] Use register_apply_action for the set_frequency action (#19517)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user