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