a4e02dcd03
* add block to stop program * renaming
13 lines
325 B
TypeScript
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();
|
|
}
|
|
} |