pxt-calliope/docs/reference.md

35 lines
526 B
Markdown
Raw Normal View History

2016-06-16 20:46:48 +02:00
# Reference
2016-03-26 00:47:20 +01:00
2016-04-05 22:23:42 +02:00
```namespaces
2016-05-05 20:32:35 +02:00
basic.showNumber(0);
input.onButtonPressed(Button.A, () => {
});
music.playTone(0, 0);
2016-05-19 22:56:24 +02:00
led.plot(0, 0);
radio.sendNumber(0);
2016-05-05 20:32:35 +02:00
game.addScore(1);
images.createImage(`
. . . . .
. . . . .
. . # . .
. . . . .
. . . . .
`);
2016-04-05 22:23:42 +02:00
pins.digitalReadPin(DigitalPin.P0);
serial.writeNumber(0);
2016-05-05 20:32:35 +02:00
control.inBackground(() => {
});
2016-06-21 18:46:13 +02:00
```
2016-07-29 23:19:21 +02:00
## Advanced
```namespaces
devices.tellCameraTo(MesCameraEvent.TakePhoto);
bluetooth.onBluetoothConnected(() => {});
```
```package
microbit-devices
microbit-bluetooth
```