add block to stop program (#943)

* add block to stop program

* renaming
This commit is contained in:
Peli de Halleux
2019-10-09 09:30:42 -07:00
committed by GitHub
parent fb5776ec41
commit a4e02dcd03
6 changed files with 36 additions and 3 deletions

View File

@ -0,0 +1,18 @@
# exit Program
Stops the program and returns to the brick menu
```sig
brick.exitProgram();
```
## Example
Do a sequence of motor commands and stop the program.
```blocks
motors.largeA.run(50)
pause(500)
motors.stopAll()
brick.exitProgram();
```