pxt-calliope/docs/reference.md

24 lines
354 B
Markdown
Raw Normal View History

2016-06-14 21:37:55 -04:00
# Micro:bit APIs
2016-03-25 16:47:20 -07:00
2016-04-05 13:23:42 -07:00
```namespaces
2016-05-05 11:32:35 -07:00
basic.showNumber(0);
input.onButtonPressed(Button.A, () => {
});
music.playTone(0, 0);
2016-05-19 13:56:24 -07:00
led.plot(0, 0);
radio.sendNumber(0);
2016-05-05 11:32:35 -07:00
game.addScore(1);
images.createImage(`
. . . . .
. . . . .
. . # . .
. . . . .
. . . . .
`);
2016-04-05 13:23:42 -07:00
pins.digitalReadPin(DigitalPin.P0);
serial.writeNumber(0);
2016-05-05 11:32:35 -07:00
control.inBackground(() => {
});
2016-06-14 12:17:54 -04:00
```