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
|
|
|
```
|