pxt-calliope/docs/reference.md
Peli de Halleux f7ed06108d Inputorg (#275)
* use typescript from workspace

* fixed tracking in localhost

* updated ordering of input/radio
2016-10-11 19:36:00 -07:00

1.0 KiB

Reference

@description List of API categories available in the editors

basic.showNumber(0);
input.onButtonPressed(Button.A, () => {
    
});
music.playTone(0, 0);
led.plot(0, 0);
radio.sendNumber(0);

Advanced

game.addScore(1);
images.createImage(`
. . . . .
. . . . .
. . # . .
. . . . .
. . . . .
`);
pins.digitalReadPin(DigitalPin.P0);
serial.writeNumber(0);
control.inBackground(() => {
    
});

Bluetooth

devices.tellCameraTo(MesCameraEvent.TakePhoto);
bluetooth.onBluetoothConnected(() => {});
microbit-radio
microbit-devices
microbit-bluetooth

See Also

basic, input, music, led, Math (blocks), String, game, images, pins, serial, control, radio, devices, bluetooth