First pass at Duplo train support

This commit is contained in:
Nathan Kellenicki 2018-08-28 09:22:06 -07:00
parent 9a3077866c
commit 4452c0e70a
3 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ Emits when a Powered UP Hub device is found.
| Param | Type | | Param | Type |
| --- | --- | | --- | --- |
| hub | [<code>WeDo2SmartHub</code>](#WeDo2SmartHub) \| [<code>BoostMoveHub</code>](#BoostMoveHub) \| [<code>PUPHub</code>](#PUPHub) \| [<code>PUPRemote</code>](#PUPRemote) | | hub | [<code>WeDo2SmartHub</code>](#WeDo2SmartHub) \| [<code>BoostMoveHub</code>](#BoostMoveHub) \| [<code>PUPHub</code>](#PUPHub) \| [<code>PUPRemote</code>](#PUPRemote) \| [<code>DuploTrainHub</code>](#DuploTrainHub) |
<a name="WeDo2SmartHub"></a> <a name="WeDo2SmartHub"></a>

View File

@ -145,7 +145,7 @@ Emits when a Powered UP Hub device is found.
| Param | Type | | Param | Type |
| --- | --- | | --- | --- |
| hub | [<code>WeDo2SmartHub</code>](#WeDo2SmartHub) \| [<code>BoostMoveHub</code>](#BoostMoveHub) \| [<code>PUPHub</code>](#PUPHub) \| [<code>PUPRemote</code>](#PUPRemote) | | hub | [<code>WeDo2SmartHub</code>](#WeDo2SmartHub) \| [<code>BoostMoveHub</code>](#BoostMoveHub) \| [<code>PUPHub</code>](#PUPHub) \| [<code>PUPRemote</code>](#PUPRemote) \| [<code>DuploTrainHub</code>](#DuploTrainHub) |
<a name="WeDo2SmartHub"></a> <a name="WeDo2SmartHub"></a>

View File

@ -95,7 +95,7 @@ export class PoweredUP extends EventEmitter {
/** /**
* Emits when a Powered UP Hub device is found. * Emits when a Powered UP Hub device is found.
* @event PoweredUP#discover * @event PoweredUP#discover
* @param {WeDo2SmartHub | BoostMoveHub | PUPHub | PUPRemote} hub * @param {WeDo2SmartHub | BoostMoveHub | PUPHub | PUPRemote | DuploTrainHub} hub
*/ */
this.emit("discover", hub); this.emit("discover", hub);