[grove_tb6612fng] Use register_apply_action for the six motor actions (#19664)

This commit is contained in:
J. Nick Koston
2026-09-25 19:28:12 +00:00
committed by GitHub
parent 0c548f77fa
commit 6622e1fe64
4 changed files with 57 additions and 156 deletions
@@ -0,0 +1,22 @@
button:
- platform: template
name: Grove Motor Actions
on_press:
- grove_tb6612fng.run:
channel: !lambda return 0;
speed: 100
direction: FORWARD
id: test_motor
- grove_tb6612fng.stop:
channel: !lambda return 1;
id: test_motor
- grove_tb6612fng.break:
channel: !lambda return 0;
id: test_motor
- grove_tb6612fng.standby:
id: test_motor
- grove_tb6612fng.no_standby:
id: test_motor
- grove_tb6612fng.change_address:
address: 0x15
id: test_motor
@@ -0,0 +1,4 @@
packages:
i2c: !include ../../test_build_components/common/i2c/esp8266-ard.yaml
grove_tb6612fng: !include common.yaml
actions: !include common-actions.yaml