36 lines
464 B
Markdown
36 lines
464 B
Markdown
# Reference
|
|
|
|
```namespaces
|
|
basic.showNumber(0);
|
|
input.onButtonPressed(Button.A, () => {
|
|
|
|
});
|
|
music.playTone(0, 0);
|
|
led.plot(0, 0);
|
|
radio.sendNumber(0);
|
|
game.addScore(1);
|
|
images.createImage(`
|
|
. . . . .
|
|
. . . . .
|
|
. . # . .
|
|
. . . . .
|
|
. . . . .
|
|
`);
|
|
pins.digitalReadPin(DigitalPin.P0);
|
|
serial.writeNumber(0);
|
|
control.inBackground(() => {
|
|
|
|
});
|
|
```
|
|
|
|
## Advanced
|
|
|
|
```namespaces
|
|
bluetooth.onBluetoothConnected(() => {
|
|
|
|
});
|
|
```
|
|
|
|
```package
|
|
microbit-bluetooth
|
|
``` |