diff --git a/DOCS.md b/DOCS.md index 54d35bd..cba2ceb 100644 --- a/DOCS.md +++ b/DOCS.md @@ -71,6 +71,7 @@ Emits when a LPF2 Hub device is found. **Extends**: [Hub](#Hub) * [LPF2Hub](#LPF2Hub) ⇐ [Hub](#Hub) + * [new LPF2Hub()](#new_LPF2Hub_new) * [.setLEDColor(color)](#LPF2Hub+setLEDColor) ⇒ Promise * [.setMotorSpeed(port, speed, [time])](#LPF2Hub+setMotorSpeed) ⇒ Promise * [.setMotorAngle(port, angle, [speed])](#LPF2Hub+setMotorAngle) ⇒ Promise @@ -86,6 +87,11 @@ Emits when a LPF2 Hub device is found. * ["tilt" (port, x, y)](#LPF2Hub+event_tilt) * ["rotate" (port, rotation)](#LPF2Hub+event_rotate) + + +### new LPF2Hub() +The LPF2Hub is emitted if the discovered device is either a Boost Move Hub, Powered Up Hub, or Powered Up Remote. + ### lpF2Hub.setLEDColor(color) ⇒ Promise @@ -262,6 +268,7 @@ Emits when a rotation sensor is activated. **Extends**: [Hub](#Hub) * [WeDo2Hub](#WeDo2Hub) ⇐ [Hub](#Hub) + * [new WeDo2Hub()](#new_WeDo2Hub_new) * [.setLEDColor(color)](#WeDo2Hub+setLEDColor) ⇒ Promise * [.setLEDRGB(red, green, blue)](#WeDo2Hub+setLEDRGB) ⇒ Promise * [.setMotorSpeed(port, speed)](#WeDo2Hub+setMotorSpeed) ⇒ Promise @@ -277,6 +284,11 @@ Emits when a rotation sensor is activated. * ["tilt" (port, x, y)](#WeDo2Hub+event_tilt) * ["rotate" (port, rotation)](#WeDo2Hub+event_rotate) + + +### new WeDo2Hub() +The WeDo2Hub is emitted if the discovered device is a WeDo 2.0 Smart Hub. + ### weDo2Hub.setLEDColor(color) ⇒ Promise diff --git a/README.md b/README.md index b1f4bd8..f475220 100644 --- a/README.md +++ b/README.md @@ -112,6 +112,7 @@ Emits when a LPF2 Hub device is found. **Extends**: [Hub](#Hub) * [LPF2Hub](#LPF2Hub) ⇐ [Hub](#Hub) + * [new LPF2Hub()](#new_LPF2Hub_new) * [.setLEDColor(color)](#LPF2Hub+setLEDColor) ⇒ Promise * [.setMotorSpeed(port, speed, [time])](#LPF2Hub+setMotorSpeed) ⇒ Promise * [.setMotorAngle(port, angle, [speed])](#LPF2Hub+setMotorAngle) ⇒ Promise @@ -127,6 +128,11 @@ Emits when a LPF2 Hub device is found. * ["tilt" (port, x, y)](#LPF2Hub+event_tilt) * ["rotate" (port, rotation)](#LPF2Hub+event_rotate) + + +### new LPF2Hub() +The LPF2Hub is emitted if the discovered device is either a Boost Move Hub, Powered Up Hub, or Powered Up Remote. + ### lpF2Hub.setLEDColor(color) ⇒ Promise @@ -303,6 +309,7 @@ Emits when a rotation sensor is activated. **Extends**: [Hub](#Hub) * [WeDo2Hub](#WeDo2Hub) ⇐ [Hub](#Hub) + * [new WeDo2Hub()](#new_WeDo2Hub_new) * [.setLEDColor(color)](#WeDo2Hub+setLEDColor) ⇒ Promise * [.setLEDRGB(red, green, blue)](#WeDo2Hub+setLEDRGB) ⇒ Promise * [.setMotorSpeed(port, speed)](#WeDo2Hub+setMotorSpeed) ⇒ Promise @@ -318,6 +325,11 @@ Emits when a rotation sensor is activated. * ["tilt" (port, x, y)](#WeDo2Hub+event_tilt) * ["rotate" (port, rotation)](#WeDo2Hub+event_rotate) + + +### new WeDo2Hub() +The WeDo2Hub is emitted if the discovered device is a WeDo 2.0 Smart Hub. + ### weDo2Hub.setLEDColor(color) ⇒ Promise diff --git a/lpf2hub.ts b/lpf2hub.ts index c1bb83b..ba29675 100644 --- a/lpf2hub.ts +++ b/lpf2hub.ts @@ -10,6 +10,7 @@ const debug = Debug("lpf2hub"); /** + * The LPF2Hub is emitted if the discovered device is either a Boost Move Hub, Powered Up Hub, or Powered Up Remote. * @class LPF2Hub * @extends Hub */ diff --git a/wedo2hub.ts b/wedo2hub.ts index e24c2f6..f74751e 100644 --- a/wedo2hub.ts +++ b/wedo2hub.ts @@ -10,6 +10,7 @@ const debug = Debug("wedo2hub"); /** + * The WeDo2Hub is emitted if the discovered device is a WeDo 2.0 Smart Hub. * @class WeDo2Hub * @extends Hub */