pxt-calliope/docs/reference.md
2016-11-29 09:21:23 -08:00

1.1 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 and Eddystone

devices.tellCameraTo(MesCameraEvent.TakePhoto);
bluetooth.onBluetoothConnected(() => {});
eddystone.advertiseUrl("https://pxt.io", 6);
radio
devices
bluetooth
eddystone

See Also

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