Add 'infrared beacon' api topics (#330)

* Add 'infrared beacon' api topics

* Include note about channel selection
This commit is contained in:
Galen Nickel
2018-02-21 22:35:51 -08:00
committed by Peli de Halleux
parent 8cfb70c97b
commit ed8f8bafa7
12 changed files with 278 additions and 19 deletions

View File

@ -10,7 +10,7 @@ sensors.touch1.onEvent(ButtonEvent.Bumped, function () {
## Parameters
* **ev**: the touch sensor action to run some code for. The the touch actions (events) are:
* **ev**: the touch sensor action to run some code for. The touch actions (events) are:
> * ``pressed``: the sensor was pressed, or pressed and released
> * ``bumped``: the sensor was just bumped
> * ``released``: the sensor was just released
@ -18,7 +18,7 @@ sensors.touch1.onEvent(ButtonEvent.Bumped, function () {
## Example
Check for an event on touch sensor ``touch 1``. Put an expression on the screen when the senosr is released.
Check for an event on touch sensor ``touch 1``. Put an expression on the screen when the sensor is released.
```blocks
sensors.touch1.onEvent(ButtonEvent.Released, function () {

View File

@ -8,7 +8,7 @@ sensors.touch1.pauseUntil(ButtonEvent.Bumped);
## Parameters
* **ev**: the touch sensor action to wait for. The the touch actions (events) are:
* **ev**: the touch sensor action to wait for. The touch actions (events) are:
> * ``pressed``: the sensor was pressed, or pressed and released
> * ``bumped``: the sensor was just bumped
> * ``released``: the sensor was just released

View File

@ -10,7 +10,7 @@ If a touch sensor was pressed, then that event is remembered. Once you check if
## Returns
* a [boolean](/types/boolean) value that is `true` if the sensor is was pressed before. It's `false` if the sensor was not pressed.
* a [boolean](/types/boolean) value that is `true` if the sensor was pressed before. It's `false` if the sensor was not pressed.
## Example