mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-12 17:45:49 +00:00
34 lines
710 B
Plaintext
34 lines
710 B
Plaintext
.. csv-table::
|
|
:header: "Command", "Extra information"
|
|
:widths: 20, 30
|
|
|
|
"
|
|
``WemosMotorShieldCMD,<Motornumber>,<Action>,<Speed>``
|
|
|
|
Motornumber:
|
|
|
|
``0`` Motor A
|
|
|
|
``1`` Motor B
|
|
|
|
Action:
|
|
|
|
``Forward`` Turn on DC Motor, Direction Forward
|
|
|
|
``Backward`` Turn on DC Motor, Direction Backward
|
|
|
|
``Stop``
|
|
|
|
Speed: a value from 0-255
|
|
|
|
","
|
|
Examples:
|
|
Turn on DC Motor, Direction: Forward. Speed: 99
|
|
|
|
``http://<ESP IP address>/control?cmd=WemosMotorShieldCMD,0,Forward,99``
|
|
|
|
Stopping the DC Motor:
|
|
|
|
``http://<ESP IP address>/control?cmd=WemosMotorShieldCMD,0,Stop``
|
|
"
|