pxt-ev3/docs/reference/brick/exit-program.md
Peli de Halleux a4e02dcd03
add block to stop program (#943)
* add block to stop program

* renaming
2019-10-09 09:30:42 -07:00

249 B

exit Program

Stops the program and returns to the brick menu

brick.exitProgram();

Example

Do a sequence of motor commands and stop the program.

motors.largeA.run(50)
pause(500)
motors.stopAll()
brick.exitProgram();