More documentation

This commit is contained in:
Nathan Kunicki 2018-06-21 18:31:22 +01:00
parent 3a413953db
commit 3d8ac86b2f
3 changed files with 6 additions and 0 deletions

View File

@ -173,6 +173,8 @@ Emits when a color sensor is activated.
### "tilt" (port, x, y) ### "tilt" (port, x, y)
Emits when a tilt sensor is activated. Emits when a tilt sensor is activated.
Note: If the event if fired from the Move Hub's inbuild tilt sensor, the special port "TILT" is used.
**Kind**: event emitted by [<code>BoostHub</code>](#BoostHub) **Kind**: event emitted by [<code>BoostHub</code>](#BoostHub)
| Param | Type | | Param | Type |

View File

@ -213,6 +213,8 @@ Emits when a color sensor is activated.
### "tilt" (port, x, y) ### "tilt" (port, x, y)
Emits when a tilt sensor is activated. Emits when a tilt sensor is activated.
Note: If the event if fired from the Move Hub's inbuild tilt sensor, the special port "TILT" is used.
**Kind**: event emitted by [<code>BoostHub</code>](#BoostHub) **Kind**: event emitted by [<code>BoostHub</code>](#BoostHub)
| Param | Type | | Param | Type |

View File

@ -321,6 +321,8 @@ export class BoostHub extends Hub {
this._lastTiltY = tiltY; this._lastTiltY = tiltY;
/** /**
* Emits when a tilt sensor is activated. * Emits when a tilt sensor is activated.
*
* Note: If the event if fired from the Move Hub's inbuild tilt sensor, the special port "TILT" is used.
* @event BoostHub#tilt * @event BoostHub#tilt
* @param {string} port * @param {string} port
* @param {number} x * @param {number} x