pxt-calliope/docs/reference.md

18 lines
401 B
Markdown
Raw Normal View History

2016-03-25 16:47:20 -07:00
# Reference
2016-04-05 13:23:42 -07:00
```namespaces
basic.showString("Hello!");
input.onButtonPressed(Button.A, () => {});
2016-04-05 23:11:48 -07:00
for (let i = 0;i<5;++i) {}
if (true){}
let x = 0;
Math.random(5);
2016-04-05 13:23:42 -07:00
led.plot(0,0);
radio.sendNumber(0);
music.playTone(music.noteFrequency(Note.C), music.beat(BeatFraction.Whole));
2016-04-05 15:59:25 -07:00
game.createSprite(2,2);
2016-04-05 13:23:42 -07:00
pins.digitalReadPin(DigitalPin.P0);
2016-04-05 15:59:25 -07:00
serial.writeLine("Hello!");
2016-04-05 13:23:42 -07:00
control.inBackground(() => {});
2016-03-25 16:47:20 -07:00
```