2016-03-26 00:47:20 +01:00
|
|
|
# Reference
|
|
|
|
|
2016-04-05 22:23:42 +02:00
|
|
|
```namespaces
|
2016-04-06 08:11:48 +02:00
|
|
|
for (let i = 0;i<5;++i) {}
|
|
|
|
if (true){}
|
|
|
|
let x = 0;
|
|
|
|
Math.random(5);
|
2016-05-05 20:32:35 +02:00
|
|
|
basic.showNumber(0);
|
|
|
|
input.onButtonPressed(Button.A, () => {
|
|
|
|
|
|
|
|
});
|
|
|
|
led.plot(0, 0);
|
|
|
|
music.playTone(0, 0);
|
|
|
|
game.addScore(1);
|
|
|
|
images.createImage(`
|
|
|
|
. . . . .
|
|
|
|
. . . . .
|
|
|
|
. . # . .
|
|
|
|
. . . . .
|
|
|
|
. . . . .
|
|
|
|
`);
|
2016-04-05 22:23:42 +02:00
|
|
|
pins.digitalReadPin(DigitalPin.P0);
|
2016-05-05 20:32:35 +02:00
|
|
|
serial.writeValue(x, 0);
|
|
|
|
control.inBackground(() => {
|
|
|
|
|
|
|
|
});
|
2016-05-11 14:12:09 +02:00
|
|
|
```
|