pxt-calliope/docs/reference.md
2016-05-19 13:56:24 -07:00

418 B

Reference

for (let i = 0;i<5;++i) {}
if (true){}
let x = 0;
Math.random(5);
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.writeValue(x, 0);
control.inBackground(() => {
    
});