adding control blocks
This commit is contained in:
1 parent
d14f977b85
commit
c25049ee5f
3 files changed
+9
-6
No files matched your search
@@ -1,13 +1,16 @@
|
||||
//% weight=1 color="#333333"
|
||||
namespace control {
|
||||
/**
|
||||
* Schedules code that run in the background.
|
||||
//% help=control/in-background shim=micro_bit::runInBackground
|
||||
*/
|
||||
//% help=control/in-background shim=micro_bit::runInBackground
|
||||
//% blockId="control_in_background" block="run in background"
|
||||
export function inBackground(body: Action): void { }
|
||||
|
||||
/**
|
||||
* Resets the BBC micro:bit.
|
||||
*/
|
||||
//% weight=1 shim=uBit.reset async help=control/reset
|
||||
//% blockId="control_reset" block="reset"
|
||||
export function reset() : void { }
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
//% weight=1
|
||||
//% weight=2
|
||||
namespace serial {
|
||||
/**
|
||||
* Prints a line of text to the serial
|
||||
|
||||
Reference in new issue
Block a user