Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1012 Bytes

devices.md

File metadata and controls

33 lines (22 loc) · 1012 Bytes

Devices

Control a phone with the @boardname@ via Bluetooth.

~ hint

App required You must use one of the micro:bit apps to use this functionality.

~

devices.tellCameraTo(MesCameraEvent.TakePhoto);
devices.tellRemoteControlTo(MesRemoteControlEvent.play);
devices.raiseAlertTo(MesAlertEvent.DisplayToast);
devices.onNotified(MesDeviceInfo.IncomingCall, () => {
    
});
devices.onGamepadButton(MesDpadButtonInfo.ADown, () => {
    
});
devices.signalStrength();
devices.onSignalStrengthChanged(() => {
    
});
devices

See Also

tellCameraTo, tellRemoteControlTo, raiseAlertTo, onNotified, onGamepadButton, signalStrength, onSignalStrengthChanged