Control pages now link to Lancaster

This commit is contained in:
Ron Hale-Evans 2016-07-21 13:29:59 -07:00
parent dd94442555
commit c55716e148
8 changed files with 28 additions and 198 deletions

View File

@ -3,30 +3,9 @@
Gets a friendly name for the device derived from the its serial number. Gets a friendly name for the device derived from the its serial number.
```sig ```sig
control.deviceName();
``` ```
### Parameters **This is an advanced API.** For more information, see the
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/).
* ``a``:
* ``b``:
* ``c``:
### Returns
### Example
The following example / This program does something.
```blocks
```
### See also
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas)

View File

@ -3,30 +3,8 @@
Derive a unique, consistent serial number of this device from internal data. Derive a unique, consistent serial number of this device from internal data.
```sig ```sig
control.deviceSerialNumber();
``` ```
### Parameters **This is an advanced API.** For more information, see the
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/).
* ``a``:
* ``b``:
* ``c``:
### Returns
### Example
The following example / This program does something.
```blocks
```
### See also
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas)

View File

@ -1,32 +1,10 @@
# Do Something # Event Source ID
Do something. Return a code representing the origin of the event on the bus (button, pin, radio, and so on).
```sig ```sig
control.eventSourceId(EventBusSource.MICROBIT_ID_BUTTON_A);
``` ```
### Parameters **This is an advanced API.** For more information, see the
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/)
* ``a``:
* ``b``:
* ``c``:
### Returns
### Example
The following example / This program does something.
```blocks
```
### See also
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas)

View File

@ -3,30 +3,8 @@
Get the timestamp of the last event executed on the bus Get the timestamp of the last event executed on the bus
```sig ```sig
control.eventTimestamp();
``` ```
### Parameters **This is an advanced API.** For more information, see the
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/).
* ``a``:
* ``b``:
* ``c``:
### Returns
### Example
The following example / This program does something.
```blocks
```
### See also
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas)

View File

@ -1,32 +1,12 @@
# Do Something # Event Value ID
Do something. Return a code representing the type of the event (button click, device gesture, and so on).
```sig ```sig
control.eventValueId(EventBusValue.MICROBIT_EVT_ANY);
``` ```
### Parameters
* ``a``: **This is an advanced API.** For more information, see the
* ``b``: [micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/).
* ``c``:
### Returns
### Example
The following example / This program does something.
```blocks
```
### See also
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas)

View File

@ -3,30 +3,10 @@
Get the value of the last event executed on the bus. Get the value of the last event executed on the bus.
```sig ```sig
control.eventValue();
``` ```
### Parameters
* ``a``: **This is an advanced API.** For more information, see the
* ``b``: [micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/).
* ``c``:
### Returns
### Example
The following example / This program does something.
```blocks
```
### See also
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas)

View File

@ -3,30 +3,9 @@
Raise an event in the event bus. Raise an event in the event bus.
```sig ```sig
control.onEvent(control.eventSourceId(EventBusSource.MICROBIT_ID_BUTTON_A), control.eventValueId(EventBusValue.MICROBIT_EVT_ANY), () => { });
``` ```
### Parameters **This is an advanced API.** For more information, see the
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/).
* ``a``:
* ``b``:
* ``c``:
### Returns
### Example
The following example / This program does something.
```blocks
```
### See also
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas)

View File

@ -3,30 +3,8 @@
Raise an event in the event bus. Raise an event in the event bus.
```sig ```sig
control.raiseEvent(control.eventSourceId(EventBusSource.MICROBIT_ID_BUTTON_A), control.eventValueId(EventBusValue.MICROBIT_EVT_ANY));
``` ```
### Parameters **This is an advanced API.** For more information, see the
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/)
* ``a``:
* ``b``:
* ``c``:
### Returns
### Example
The following example / This program does something.
```blocks
```
### See also
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas),
[bar bas](/reference/foo/bar-bas)