pxt-calliope/docs/reference/bluetooth.md
2016-08-08 13:08:15 -07:00

1.1 KiB

Bluetooth

Support for additional Bluetooth services.

bluetooth.startAccelerometerService();
bluetooth.startButtonService();
bluetooth.startIOPinService();
bluetooth.startLEDService();
bluetooth.startMagnetometerService();
bluetooth.startTemperatureService();
bluetooth.uartRead("");
bluetooth.uartWrite("");
bluetooth.onBluetoothConnected(() => {
    
});
bluetooth.onBluetoothDisconnected(() => {
    
});
microbit-bluetooth

See Also

startAccelerometerService, startButtonService, startIOPinService, startLEDService, startMagnetometerService, startTemperatureService, uartRead, uartWrite, onBluetoothConnected, onBluetoothDisconnected