pxt-ev3/docs/reference/motors/reset-all.md
Peli de Halleux 7581b5af9e
Drift support (#926)
* upgrading drift support

* updated showports

* typos
2019-09-29 09:49:13 -07:00

413 B

reset All Motors

Reset all motors currently running on the brick.

motors.resetAll();

The motors counters are resetted.

Example

Tank the EV3 Brick forward at half speed for 5 seconds and then stop.

motors.largeAB.tank(50, 50);
pause(5000);
motors.stopAll();
motors.resetAll();

See also

stop all, reset