pxt-calliope/docs/reference/bluetooth.md

24 lines
458 B
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
```