pxt-ev3/libs/ev3/brick.ts
Peli de Halleux a4e02dcd03
add block to stop program (#943)
* add block to stop program

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

13 lines
325 B
TypeScript

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();
}
}