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

@ -45,3 +45,13 @@ sensors.infraredSensor1.pauseUntil(null);
sensors.infraredSensor1.proximity();
```
## Infrared beacon button
```cards
sensors.remoteButtonCenter.onEvent(ButtonEvent.Pressed, function () {})
sensors.remoteButtonCenter.pauseUntil(ButtonEvent.Pressed);
sensors.remoteButtonCenter.isPressed()
sensors.remoteButtonCenter.wasPressed()
sensors.infraredSensor1.setRemoteChannel(null)
```