pxt-ev3/libs/ev3/brick.ts

13 lines
325 B
TypeScript
Raw Permalink Normal View History

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