fixing devices docs

This commit is contained in:
Peli de Halleux 2017-03-15 15:31:34 -07:00
parent 5c2d9c769c
commit 46c297cba7
2 changed files with 18 additions and 18 deletions

View File

@ -11,7 +11,7 @@ The set of supported events will depend on the remote device and the @boardname@
### ~ ### ~
```sig ```sig
devices.tellCameraTo() devices.tellCameraTo(MesCameraEvent.TakePhoto)
``` ```
### Parameters ### Parameters
@ -23,49 +23,49 @@ devices.tellCameraTo()
To tell the connected device to take a picture: To tell the connected device to take a picture:
```blocks ```blocks
devices.tellCameraTo("take photo") devices.tellCameraTo(MesCameraEvent.StartVideoCapture)
``` ```
To tell the connected device to start recording a video To tell the connected device to start recording a video
```blocks ```blocks
devices.tellCameraTo("start video capture") devices.tellCameraTo(MesCameraEvent.StopVideoCapture)
``` ```
To tell the connected device to stop recording a video To tell the connected device to stop recording a video
```blocks ```blocks
devices.tellCameraTo("stop video capture") devices.tellCameraTo(MesCameraEvent.ToggleFrontRear)
``` ```
To tell the connected device to toggle front-rear To tell the connected device to toggle front-rear
```blocks ```blocks
devices.tellCameraTo("toggle front-rear") devices.tellCameraTo(MesCameraEvent.LaunchPhotoMode)
``` ```
To tell the connected device to launch photo mode To tell the connected device to launch photo mode
```blocks ```blocks
devices.tellCameraTo("launch photo mode") devices.tellCameraTo(MesCameraEvent.LaunchPhotoMode)
``` ```
To tell the connected device to launch video mode To tell the connected device to launch video mode
```blocks ```blocks
devices.tellCameraTo("launch video mode") devices.tellCameraTo(MesCameraEvent.LaunchVideoMode)
``` ```
To tell the connected device to stop photo mode To tell the connected device to stop photo mode
```blocks ```blocks
devices.tellCameraTo("stop photo mode") devices.tellCameraTo(MesCameraEvent.StopPhotoMode)
``` ```
To tell the connected device to stop video mode To tell the connected device to stop video mode
```blocks ```blocks
devices.tellCameraTo("stop video mode") devices.tellCameraTo(MesCameraEvent.StopVideoMode)
``` ```
### See Also ### See Also

View File

@ -11,7 +11,7 @@ The set of supported events will depend on the remote device and the @boardname@
### ~ ### ~
```sig ```sig
devices.tellRemoteControlTo(event: string) devices.tellRemoteControlTo(MesRemoteControlEvent.play)
``` ```
### Parameters ### Parameters
@ -35,49 +35,49 @@ devices.tellRemoteControlTo(event: string)
To tell the connected device to start playing: To tell the connected device to start playing:
```blocks ```blocks
devices.tellRemoteControlTo("play") devices.tellRemoteControlTo(MesRemoteControlEvent.play)
``` ```
To tell the connected device to stop playing To tell the connected device to stop playing
```blocks ```blocks
devices.tellRemoteControlTo("stop") devices.tellRemoteControlTo(MesRemoteControlEvent.stop)
``` ```
To tell the connected device to go to next track To tell the connected device to go to next track
```blocks ```blocks
devices.tellRemoteControlTo("next track") devices.tellRemoteControlTo(MesRemoteControlEvent.nextTrack)
``` ```
To tell the connected device to go to previous track To tell the connected device to go to previous track
```blocks ```blocks
devices.tellRemoteControlTo("previous track") devices.tellRemoteControlTo(MesRemoteControlEvent.previousTrack)
``` ```
To tell the connected device to go forward To tell the connected device to go forward
```blocks ```blocks
devices.tellRemoteControlTo("forward") devices.tellRemoteControlTo(MesRemoteControlEvent.forward)
``` ```
To tell the connected device to rewind To tell the connected device to rewind
```blocks ```blocks
devices.tellRemoteControlTo("rewind") devices.tellRemoteControlTo(MesRemoteControlEvent.rewind)
``` ```
To tell the connected device volume up To tell the connected device volume up
```blocks ```blocks
devices.tellRemoteControlTo("volume up") devices.tellRemoteControlTo(MesRemoteControlEvent.volumeUp)
``` ```
To tell the connected device volume down To tell the connected device volume down
```blocks ```blocks
devices.tellRemoteControlTo("volume down") devices.tellRemoteControlTo(MesRemoteControlEvent.volumeDown)
``` ```
### See also ### See also