pxt-calliope/docs/reference/bluetooth.md

29 lines
1.1 KiB
Markdown
Raw Normal View History

2016-06-21 18:46:13 +02:00
# Bluetooth
2016-06-24 18:02:14 +02:00
Support for additional Bluetooth services.
2016-06-21 18:46:13 +02:00
```cards
bluetooth.startAccelerometerService();
bluetooth.startButtonService();
bluetooth.startIOPinService();
bluetooth.startLEDService();
bluetooth.startMagnetometerService();
bluetooth.startTemperatureService();
2016-06-24 18:02:14 +02:00
bluetooth.uartRead("");
bluetooth.uartWrite("");
bluetooth.onBluetoothConnected(() => {
});
bluetooth.onBluetoothDisconnected(() => {
});
2016-06-21 18:46:13 +02:00
```
```package
microbit-bluetooth
2016-07-27 19:57:18 +02:00
```
2016-08-08 22:08:15 +02:00
### See Also
[startAccelerometerService](/reference/bluetooth/start-accelerometer-service), [startButtonService](/reference/bluetooth/start-button-service), [startIOPinService](/reference/bluetooth/start-io-pin-service), [startLEDService](/reference/bluetooth/start-led-service), [startMagnetometerService](/reference/bluetooth/start-magnetometer-service), [startTemperatureService](/reference/bluetooth/start-temperature-service), [uartRead](/reference/bluetooth/uart-read), [uartWrite](/reference/bluetooth/uart-write), [onBluetoothConnected](/reference/bluetooth/on-bluetooth-connected), [onBluetoothDisconnected](/reference/bluetooth/on-bluetooth-disconnected)