bc4b71e0d6
* show ports on start * don't run show ports automatically * polarity in synched motor (#945) * account for polarity * more comments * handle dual motor in runtime * invert steer * don't use firmware polarity * add block to stop program (#943) * add block to stop program * renaming * fix translation
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();
|
|
}
|
|
} |