pxt-microbit Accessibility PR (#529)

* Accessibility changes
This commit is contained in:
Sam El-Husseini
2017-09-07 13:42:08 -07:00
committed by GitHub
parent 3f87576a50
commit e3975e65e5
357 changed files with 1641 additions and 3540 deletions

View File

@ -2,22 +2,22 @@
Register code to run when the @boardname@ receives a command from the paired gamepad.
### ~hint
## ~hint
![](/static/bluetooth/Bluetooth_SIG.png)
For another device like a smartphone to use any of the Bluetooth "services" which the @boardname@ has, it must first be [paired with the @boardname@](/reference/bluetooth/bluetooth-pairing). Once paired, the other device may connect to the @boardname@ and exchange data relating to many of the @boardname@'s features.
### ~
## ~
```sig
devices.onGamepadButton(MesDpadButtonInfo.ADown, () => {})
```
### Parameters
## Parameters
* ``body``: Action code to run when the the @boardname@ receives a command from the paired gamepad.
### See Also
## See Also
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [signal strength](/reference/devices/signal-strength), [on signal strength changed](/reference/devices/on-signal-strength-changed)

View File

@ -2,12 +2,12 @@
Register code to run when the signal strength of the paired device changes.
### ~hint
## ~hint
![](/static/bluetooth/Bluetooth_SIG.png)
For another device like a smartphone to use any of the Bluetooth "services" which the @boardname@ has, it must first be [paired with the @boardname@](/reference/bluetooth/bluetooth-pairing). Once paired, the other device may connect to the @boardname@ and exchange data relating to many of the @boardname@'s features.
### ~
## ~
@ -15,11 +15,11 @@ For another device like a smartphone to use any of the Bluetooth "services" whic
devices.onNotified(MesDeviceInfo.IncomingCall, () => {})
```
### Parameters
## Parameters
* ``body``: code to run when the signal strength changes.
### Examples
## Examples
Display the signal strength on screen:
@ -29,7 +29,7 @@ devices.onNotified(MesDeviceInfo.IncomingCall, () => {
})
```
### See Also
## See Also
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [signal strength](/reference/devices/signal-strength)

View File

@ -2,12 +2,12 @@
Register code to run when the signal strength of the paired device changes.
### ~hint
## ~hint
![](/static/bluetooth/Bluetooth_SIG.png)
For another device like a smartphone to use any of the Bluetooth "services" which the @boardname@ has, it must first be [paired with the @boardname@](/reference/bluetooth/bluetooth-pairing). Once paired, the other device may connect to the @boardname@ and exchange data relating to many of the @boardname@'s features.
### ~
## ~
@ -15,11 +15,11 @@ For another device like a smartphone to use any of the Bluetooth "services" whic
devices.onSignalStrengthChanged(() => {})
```
### Parameters
## Parameters
* ``body``: code to run when the signal strength changes.
### Examples
## Examples
Display the signal strength on screen:
@ -29,7 +29,7 @@ devices.onSignalStrengthChanged(() => {
})
```
### See Also
## See Also
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [signal strength](/reference/devices/signal-strength)

View File

@ -2,12 +2,12 @@
Raise an alert on a remote device.
### ~hint
## ~hint
![](/static/bluetooth/Bluetooth_SIG.png)
For another device like a smartphone to use any of the Bluetooth "services" which the @boardname@ has, it must first be [paired with the @boardname@](/reference/bluetooth/bluetooth-pairing). Once paired, the other device may connect to the @boardname@ and exchange data relating to many of the @boardname@'s features.
### ~
## ~
@ -15,11 +15,11 @@ For another device like a smartphone to use any of the Bluetooth "services" whic
devices.raiseAlertTo(MesAlertEvent.Vibrate)
```
### Parameters
## Parameters
* event - an event identifier
### Examples
## Examples
To tell the connected device to display toast
@ -57,7 +57,7 @@ To tell the connected device to ring alarm
devices.raiseAlertTo(MesAlertEvent.RingAlarm)
```
### See also
## See also
[tell remote control to](/reference/devices/tell-remote-control-to), [tell camera to](/reference/devices/tell-camera-to)

View File

@ -2,23 +2,23 @@
Returns the signal strength reported by the paired device from ``0`` (no signal) to ``4`` (full strength).
### ~hint
## ~hint
![](/static/bluetooth/Bluetooth_SIG.png)
For another device like a smartphone to use any of the Bluetooth "services" which the @boardname@ has, it must first be [paired with the @boardname@](/reference/bluetooth/bluetooth-pairing). Once paired, the other device may connect to the @boardname@ and exchange data relating to many of the @boardname@'s features.
### ~
## ~
```sig
devices.signalStrength();
```
### Returns
## Returns
* the signal strength from ``0`` (no signal) to ``4`` (full strength).
### Examples
## Examples
Display the signal strength on screen:
@ -28,7 +28,7 @@ devices.onSignalStrengthChanged(() => {
})
```
### See Also
## See Also
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to), [on signal strength changed](/reference/devices/on-signal-strength-changed)

View File

@ -2,23 +2,23 @@
Access the photo/video-taking functionality of a remote device using the ``tell camera to`` function.
### ~hint
## ~hint
![](/static/bluetooth/Bluetooth_SIG.png)
For another device like a smartphone to use any of the Bluetooth "services" which the @boardname@ has, it must first be [paired with the @boardname@](/reference/bluetooth/bluetooth-pairing). Once paired, the other device may connect to the @boardname@ and exchange data relating to many of the @boardname@'s features.
### ~
## ~
```sig
devices.tellCameraTo(MesCameraEvent.TakePhoto)
```
### Parameters
## Parameters
* event - an event identifier
### Examples
## Examples
To tell the connected device to take a picture:
@ -68,7 +68,7 @@ To tell the connected device to stop video mode
devices.tellCameraTo(MesCameraEvent.StopVideoMode)
```
### See Also
## See Also
[tell remote control to](/reference/devices/tell-remote-control-to), [raise alert to](/reference/devices/raise-alert-to)

View File

@ -2,23 +2,23 @@
Control the presentation of media content available on a remote device using the `tell remote control` to function.
### ~hint
## ~hint
![](/static/bluetooth/Bluetooth_SIG.png)
For another device like a smartphone to use any of the Bluetooth "services" which the @boardname@ has, it must first be [paired with the @boardname@](/reference/bluetooth/bluetooth-pairing). Once paired, the other device may connect to the @boardname@ and exchange data relating to many of the @boardname@'s features.
### ~
## ~
```sig
devices.tellRemoteControlTo(MesRemoteControlEvent.play)
```
### Parameters
## Parameters
* event - an event identifier
### Event values
## Event values
* play
* stop
@ -30,7 +30,7 @@ devices.tellRemoteControlTo(MesRemoteControlEvent.play)
* previous track
* next track
### Examples
## Examples
To tell the connected device to start playing:
@ -80,7 +80,7 @@ To tell the connected device volume down
devices.tellRemoteControlTo(MesRemoteControlEvent.volumeDown)
```
### See also
## See also
[tell camera to](/reference/devices/tell-camera-to), [raise alert to](/reference/devices/raise-alert-to)