adding reference pages for bluetooth
This commit is contained in:
parent
adf21fee6f
commit
5d8193301c
@ -22,3 +22,15 @@ control.inBackground(() => {
|
||||
|
||||
});
|
||||
```
|
||||
|
||||
## Advanced
|
||||
|
||||
```namespaces
|
||||
bluetooth.onBluetoothConnected(() => {
|
||||
|
||||
});
|
||||
```
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
```
|
20
docs/reference/bluetooth.md
Normal file
20
docs/reference/bluetooth.md
Normal file
@ -0,0 +1,20 @@
|
||||
# Bluetooth
|
||||
|
||||
```cards
|
||||
bluetooth.onBluetoothConnected(() => {
|
||||
|
||||
});
|
||||
bluetooth.onBluetoothDisconnected(() => {
|
||||
|
||||
});
|
||||
bluetooth.startAccelerometerService();
|
||||
bluetooth.startButtonService();
|
||||
bluetooth.startIOPinService();
|
||||
bluetooth.startLEDService();
|
||||
bluetooth.startMagnetometerService();
|
||||
bluetooth.startTemperatureService();
|
||||
```
|
||||
|
||||
```package
|
||||
microbit-bluetooth
|
||||
```
|
Loading…
Reference in New Issue
Block a user