23 lines
339 B
Markdown
23 lines
339 B
Markdown
|
# microbit Reference
|
||
|
|
||
|
```namespaces
|
||
|
basic.showNumber(0);
|
||
|
input.onButtonPressed(Button.A, () => {
|
||
|
|
||
|
});
|
||
|
led.plot(0, 0);
|
||
|
music.playTone(0, 0);
|
||
|
game.addScore(1);
|
||
|
images.createImage(`
|
||
|
. . . . .
|
||
|
. . . . .
|
||
|
. . # . .
|
||
|
. . . . .
|
||
|
. . . . .
|
||
|
`);
|
||
|
pins.digitalReadPin(DigitalPin.P0);
|
||
|
serial.writeValue(x, 0);
|
||
|
control.inBackground(() => {
|
||
|
|
||
|
});
|
||
|
```
|