mirror of
https://github.com/esphome/esphome.git
synced 2026-06-02 11:08:06 +08:00
[grove_tb6612fng] Move direction logic from Python to C++ to fix lambda crash (#15513)
This commit is contained in:
@@ -6,6 +6,11 @@ esphome:
|
||||
speed: 255
|
||||
direction: BACKWARD
|
||||
id: test_motor
|
||||
- grove_tb6612fng.run:
|
||||
channel: 0
|
||||
speed: !lambda "return 200;"
|
||||
direction: BACKWARD
|
||||
id: test_motor
|
||||
- grove_tb6612fng.stop:
|
||||
channel: 1
|
||||
id: test_motor
|
||||
|
||||
Reference in New Issue
Block a user