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

13
libs/ev3/brick.ts Normal file
View File

@ -0,0 +1,13 @@
namespace brick {
/**
* Exits the program to the main menu. (in the simulator restarts it)
*/
//% blockId=loopstop block="exit program"
//% help=reference/brick/exit-program
//% weight=10
//% blockGap=8
//% group="Buttons"
export function exitProgram() {
control.reset();
}
}