2016-06-16 20:46:48 +02:00
|
|
|
# Reference
|
2016-03-26 00:47:20 +01:00
|
|
|
|
2017-09-07 22:42:08 +02:00
|
|
|
## @description List of API categories available in the editors
|
2016-08-17 18:44:15 +02:00
|
|
|
|
2016-04-05 22:23:42 +02:00
|
|
|
```namespaces
|
2016-05-05 20:32:35 +02:00
|
|
|
basic.showNumber(0);
|
|
|
|
input.onButtonPressed(Button.A, () => {
|
|
|
|
|
|
|
|
});
|
|
|
|
music.playTone(0, 0);
|
2016-05-19 22:56:24 +02:00
|
|
|
led.plot(0, 0);
|
|
|
|
radio.sendNumber(0);
|
2016-10-12 04:36:00 +02:00
|
|
|
```
|
|
|
|
## Advanced
|
|
|
|
|
|
|
|
```namespaces
|
2016-05-05 20:32:35 +02:00
|
|
|
game.addScore(1);
|
|
|
|
images.createImage(`
|
|
|
|
. . . . .
|
|
|
|
. . . . .
|
|
|
|
. . # . .
|
|
|
|
. . . . .
|
|
|
|
. . . . .
|
|
|
|
`);
|
2016-04-05 22:23:42 +02:00
|
|
|
pins.digitalReadPin(DigitalPin.P0);
|
2016-06-12 14:16:04 +02:00
|
|
|
serial.writeNumber(0);
|
2016-05-05 20:32:35 +02:00
|
|
|
control.inBackground(() => {
|
|
|
|
|
|
|
|
});
|
2016-06-21 18:46:13 +02:00
|
|
|
```
|
2016-10-12 04:36:00 +02:00
|
|
|
|
2016-11-30 13:06:15 +01:00
|
|
|
## Bluetooth
|
2016-11-29 18:21:23 +01:00
|
|
|
|
2016-07-29 23:19:21 +02:00
|
|
|
```namespaces
|
|
|
|
bluetooth.onBluetoothConnected(() => {});
|
2017-08-11 02:52:43 +02:00
|
|
|
devices.tellCameraTo(MesCameraEvent.TakePhoto);
|
2016-07-29 23:19:21 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```package
|
2016-10-23 06:29:31 +02:00
|
|
|
radio
|
|
|
|
devices
|
|
|
|
bluetooth
|
2016-08-08 22:08:15 +02:00
|
|
|
```
|
|
|
|
|
2017-09-07 22:42:08 +02:00
|
|
|
## See Also
|
2016-08-08 22:08:15 +02:00
|
|
|
|
2017-03-16 15:57:41 +01:00
|
|
|
[basic](/reference/basic), [input](/reference/input), [music](/reference/music), [led](/reference/led), [Math (blocks)](/blocks/math), [String](/types/string), [game](/reference/game), [images](/reference/images), [pins](/reference/pins), [serial](/reference/serial), [control](/reference/control), [radio](/reference/radio), [devices](/reference/devices), [bluetooth](/reference/bluetooth)
|