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
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

View File

@ -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