pxt-calliope/libs/microbit/control.ts

17 lines
500 B
TypeScript
Raw Normal View History

2016-03-26 05:13:09 +01:00
//% weight=1 color="#333333"
2016-03-10 23:01:04 +01:00
namespace control {
/**
* Schedules code that run in the background.
*/
2016-03-26 05:13:09 +01:00
//% help=control/in-background shim=micro_bit::runInBackground
//% blockId="control_in_background" block="run in background"
2016-03-10 23:01:04 +01:00
export function inBackground(body: Action): void { }
/**
* Resets the BBC micro:bit.
*/
2016-03-22 06:13:39 +01:00
//% weight=1 shim=uBit.reset async help=control/reset
2016-03-26 05:13:09 +01:00
//% blockId="control_reset" block="reset"
2016-03-10 23:01:04 +01:00
export function reset() : void { }
}