885 B
885 B
Devices
Control a phone with the BBC micro:bit via Bluetooth.
devices.tellCameraTo(MesCameraEvent.TakePhoto);
devices.tellRemoteControlTo(MesRemoteControlEvent.play);
devices.raiseAlertTo(MesAlertEvent.DisplayToast);
devices.onNotified(MesDeviceInfo.IncomingCall, () => {
});
devices.onGamepadButton(MesDpadButtonInfo.ADown, () => {
});
devices.signalStrength();
devices.onSignalStrengthChanged(() => {
});
microbit-devices
See Also
tellCameraTo, tellRemoteControlTo, raiseAlertTo, onNotified, onGamepadButton, signalStrength, onSignalStrengthChanged