add block to stop program (#943)
* add block to stop program * renaming
This commit is contained in:
1 parent
fb5776ec41
commit
a4e02dcd03
6 files changed
+36
-3
No files matched your search
@@ -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();
|
||||
```
|
||||
Reference in new issue
Block a user