29 lines
1.1 KiB
Markdown
29 lines
1.1 KiB
Markdown
# Bluetooth
|
|
|
|
Support for additional Bluetooth services.
|
|
|
|
```cards
|
|
bluetooth.startAccelerometerService();
|
|
bluetooth.startButtonService();
|
|
bluetooth.startIOPinService();
|
|
bluetooth.startLEDService();
|
|
bluetooth.startMagnetometerService();
|
|
bluetooth.startTemperatureService();
|
|
bluetooth.uartRead("");
|
|
bluetooth.uartWrite("");
|
|
bluetooth.onBluetoothConnected(() => {
|
|
|
|
});
|
|
bluetooth.onBluetoothDisconnected(() => {
|
|
|
|
});
|
|
```
|
|
|
|
```package
|
|
microbit-bluetooth
|
|
```
|
|
|
|
### 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)
|