pxt-calliope/docs/reference/devices.md
2016-11-01 10:42:42 -07:00

874 B

Devices

Control a phone with the @boardname@ 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(() => {
    
});
devices

See Also

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