mirror of
https://github.com/esphome/esphome.git
synced 2026-10-04 10:09:13 +00:00
[grove_tb6612fng] Use register_apply_action for the six motor actions (#19664)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user