Control pages now link to Lancaster
This commit is contained in:
parent
dd94442555
commit
c55716e148
@ -3,30 +3,9 @@
|
||||
Gets a friendly name for the device derived from the its serial number.
|
||||
|
||||
```sig
|
||||
|
||||
control.deviceName();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
* ``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)
|
||||
**This is an advanced API.** For more information, see the
|
||||
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/).
|
||||
|
||||
|
@ -3,30 +3,8 @@
|
||||
Derive a unique, consistent serial number of this device from internal data.
|
||||
|
||||
```sig
|
||||
|
||||
control.deviceSerialNumber();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
* ``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)
|
||||
|
||||
**This is an advanced API.** For more information, see the
|
||||
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/).
|
||||
|
@ -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
|
||||
|
||||
control.eventSourceId(EventBusSource.MICROBIT_ID_BUTTON_A);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
* ``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)
|
||||
|
||||
**This is an advanced API.** For more information, see the
|
||||
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/)
|
||||
|
@ -3,30 +3,8 @@
|
||||
Get the timestamp of the last event executed on the bus
|
||||
|
||||
```sig
|
||||
|
||||
control.eventTimestamp();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
* ``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)
|
||||
|
||||
**This is an advanced API.** For more information, see the
|
||||
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/).
|
||||
|
@ -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
|
||||
|
||||
control.eventValueId(EventBusValue.MICROBIT_EVT_ANY);
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
* ``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)
|
||||
**This is an advanced API.** For more information, see the
|
||||
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/).
|
||||
|
||||
|
@ -3,30 +3,10 @@
|
||||
Get the value of the last event executed on the bus.
|
||||
|
||||
```sig
|
||||
|
||||
control.eventValue();
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
* ``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)
|
||||
**This is an advanced API.** For more information, see the
|
||||
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/).
|
||||
|
||||
|
@ -3,30 +3,9 @@
|
||||
Raise an event in the event bus.
|
||||
|
||||
```sig
|
||||
|
||||
control.onEvent(control.eventSourceId(EventBusSource.MICROBIT_ID_BUTTON_A), control.eventValueId(EventBusValue.MICROBIT_EVT_ANY), () => { });
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
* ``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)
|
||||
**This is an advanced API.** For more information, see the
|
||||
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/).
|
||||
|
||||
|
@ -3,30 +3,8 @@
|
||||
Raise an event in the event bus.
|
||||
|
||||
```sig
|
||||
|
||||
control.raiseEvent(control.eventSourceId(EventBusSource.MICROBIT_ID_BUTTON_A), control.eventValueId(EventBusValue.MICROBIT_EVT_ANY));
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
* ``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)
|
||||
|
||||
**This is an advanced API.** For more information, see the
|
||||
[micro:bit runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/)
|
||||
|
Loading…
Reference in New Issue
Block a user