From 46c297cba75635231a91d091fa81dea9d184fbb3 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 15 Mar 2017 15:31:34 -0700 Subject: [PATCH] fixing devices docs --- docs/reference/devices/tell-camera-to.md | 18 +++++++++--------- .../devices/tell-remote-control-to.md | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/docs/reference/devices/tell-camera-to.md b/docs/reference/devices/tell-camera-to.md index 70b9ac7c..56895623 100644 --- a/docs/reference/devices/tell-camera-to.md +++ b/docs/reference/devices/tell-camera-to.md @@ -11,7 +11,7 @@ The set of supported events will depend on the remote device and the @boardname@ ### ~ ```sig -devices.tellCameraTo() +devices.tellCameraTo(MesCameraEvent.TakePhoto) ``` ### Parameters @@ -23,49 +23,49 @@ devices.tellCameraTo() To tell the connected device to take a picture: ```blocks -devices.tellCameraTo("take photo") +devices.tellCameraTo(MesCameraEvent.StartVideoCapture) ``` To tell the connected device to start recording a video ```blocks -devices.tellCameraTo("start video capture") +devices.tellCameraTo(MesCameraEvent.StopVideoCapture) ``` To tell the connected device to stop recording a video ```blocks -devices.tellCameraTo("stop video capture") +devices.tellCameraTo(MesCameraEvent.ToggleFrontRear) ``` To tell the connected device to toggle front-rear ```blocks -devices.tellCameraTo("toggle front-rear") +devices.tellCameraTo(MesCameraEvent.LaunchPhotoMode) ``` To tell the connected device to launch photo mode ```blocks -devices.tellCameraTo("launch photo mode") +devices.tellCameraTo(MesCameraEvent.LaunchPhotoMode) ``` To tell the connected device to launch video mode ```blocks -devices.tellCameraTo("launch video mode") +devices.tellCameraTo(MesCameraEvent.LaunchVideoMode) ``` To tell the connected device to stop photo mode ```blocks -devices.tellCameraTo("stop photo mode") +devices.tellCameraTo(MesCameraEvent.StopPhotoMode) ``` To tell the connected device to stop video mode ```blocks -devices.tellCameraTo("stop video mode") +devices.tellCameraTo(MesCameraEvent.StopVideoMode) ``` ### See Also diff --git a/docs/reference/devices/tell-remote-control-to.md b/docs/reference/devices/tell-remote-control-to.md index 266a983e..26ca3032 100644 --- a/docs/reference/devices/tell-remote-control-to.md +++ b/docs/reference/devices/tell-remote-control-to.md @@ -11,7 +11,7 @@ The set of supported events will depend on the remote device and the @boardname@ ### ~ ```sig -devices.tellRemoteControlTo(event: string) +devices.tellRemoteControlTo(MesRemoteControlEvent.play) ``` ### Parameters @@ -35,49 +35,49 @@ devices.tellRemoteControlTo(event: string) To tell the connected device to start playing: ```blocks -devices.tellRemoteControlTo("play") +devices.tellRemoteControlTo(MesRemoteControlEvent.play) ``` To tell the connected device to stop playing ```blocks -devices.tellRemoteControlTo("stop") +devices.tellRemoteControlTo(MesRemoteControlEvent.stop) ``` To tell the connected device to go to next track ```blocks -devices.tellRemoteControlTo("next track") +devices.tellRemoteControlTo(MesRemoteControlEvent.nextTrack) ``` To tell the connected device to go to previous track ```blocks -devices.tellRemoteControlTo("previous track") +devices.tellRemoteControlTo(MesRemoteControlEvent.previousTrack) ``` To tell the connected device to go forward ```blocks -devices.tellRemoteControlTo("forward") +devices.tellRemoteControlTo(MesRemoteControlEvent.forward) ``` To tell the connected device to rewind ```blocks -devices.tellRemoteControlTo("rewind") +devices.tellRemoteControlTo(MesRemoteControlEvent.rewind) ``` To tell the connected device volume up ```blocks -devices.tellRemoteControlTo("volume up") +devices.tellRemoteControlTo(MesRemoteControlEvent.volumeUp) ``` To tell the connected device volume down ```blocks -devices.tellRemoteControlTo("volume down") +devices.tellRemoteControlTo(MesRemoteControlEvent.volumeDown) ``` ### See also