More documentation
This commit is contained in:
parent
3a413953db
commit
3d8ac86b2f
2
DOCS.md
2
DOCS.md
@ -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 |
|
||||||
|
@ -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 |
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user