pxt-ev3/docs/reference/motors/stop-all-motors.md
Galen Nickel 88c58b4e76 First set of 'motors' topics (#305)
* Start of 'motors' topics

* Draft the 'motor motion' side doc

* Add / update more topics

* Last blast of edits

* Capture some more edits

* Put in movement and steering details
2018-02-06 19:43:50 -08:00

619 B

stop All Motors

Stops all motors currently running on the brick.

motors.stopAllMotors();

The motors stops but any motion caused from previously running the motors continues until it runs down. If you are driving your brick and then stop the motors, it will coast for awhile before stopping.

Example

Tank the @boardname@ forward at half speed for 5 seconds and then stop.

motors.largeAB.tank(50, 50);
loops.pause(5000);
motors.stopAllMotors();

See also

stop, reset, set brake