- type
+ device
-DeviceType
+Device
@@ -3735,11 +3411,6 @@
-
- Overrides:
-
@@ -3765,8 +3436,8 @@
@@ -3872,7 +3543,7 @@
-ButtonState
+ButtonState
@@ -3912,176 +3583,10 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- color
-
-
-
-
-
-
-
-
Emits when a color sensor is activated.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- color
-
-
-
-
-
-Color
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
+ Overrides:
+
@@ -4107,203 +3612,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- colorAndDistance
-
-
-
-
-
-
-
-
A combined color and distance event, emits when the sensor is activated.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- color
-
-
-
-
-
-Color
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- distance
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
- Distance, in millimeters.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
@@ -4344,7 +3654,7 @@
-
Emits when an attached motor or sensor is detached from the Hub.
+
Emits when a device is detached from the Hub.
@@ -4379,13 +3689,13 @@
- port
+ device
-string
+Device
@@ -4424,11 +3734,6 @@
-
- Overrides:
-
@@ -4454,8 +3759,8 @@
@@ -4526,11 +3831,6 @@
-
- Overrides:
-
@@ -4556,1130 +3856,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- distance
-
-
-
-
-
-
-
-
Emits when a distance sensor is activated.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- distance
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
- Distance, in millimeters.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- gyro
-
-
-
-
-
-
-
-
Emits when gyroscope detects movement. Measured in DPS - degrees per second.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- z
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- rotate
-
-
-
-
-
-
-
-
Emits when a rotation sensor is activated.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- rotation
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- speed
-
-
-
-
-
-
-
-
Emits on a speed change.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- speed
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- temp
-
-
-
-
-
-
-
-
Emits when a change is detected on a temperature sensor. Measured in degrees centigrade.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- For Control+ Hubs, port will be "CPU" as the sensor reports CPU temperature.
-
-
-
-
-
-
- temp
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- tilt
-
-
-
-
-
-
-
-
Emits when a tilt sensor is activated.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
- If the event is fired from the Move Hub or Control+ Hub's in-built tilt sensor, the special port "TILT" is used.
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- z
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
- (Only available when using a Control+ Hub)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
@@ -5758,7 +3936,7 @@
Documentation generated by JSDoc 3.6.3
- on Tue Dec 3rd 2019
+ on Mon Feb 10th 2020
using the DocStrap template .
diff --git a/docs/PiezoBuzzer.html b/docs/PiezoBuzzer.html
new file mode 100644
index 0000000..4e69e3d
--- /dev/null
+++ b/docs/PiezoBuzzer.html
@@ -0,0 +1,1306 @@
+
+
+
+
+
+
+ node-poweredup Class: PiezoBuzzer
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: PiezoBuzzer
+
+
+
+
+
+ PiezoBuzzer
+
+
+
+
+
+
+
+
+
+
+
+
+ new PiezoBuzzer()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+
+
+ <readonly> connected
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ connected
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Check if the device is still attached.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> hub
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ hub
+
+
+
+
+
+Hub
+
+
+
+
+
+
+
+
+
+
+ The Hub the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> isVirtualPort
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ isVirtualPort
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Is this device attached to a virtual port (ie. a combined device)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> mode
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ mode
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The mode the device is currently in
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> portName
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ portName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ The port the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> type
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The type of the device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods
+
+
+
+
+
+ playTone(frequency, time)
+
+
+
+
+
+
+
+
Play a tone on the Hub's in-built buzzer
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ frequency
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ time
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ How long the tone should play for (in milliseconds).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful completion of command (ie. once the tone has finished playing).
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/RemoteControl.html b/docs/RemoteControl.html
index 21f65a4..1872331 100644
--- a/docs/RemoteControl.html
+++ b/docs/RemoteControl.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -513,7 +513,7 @@
- firmwareVersion
+ hardwareVersion
@@ -1409,6 +1409,202 @@
+
+
+ createVirtualPort(firstPortName, secondPortName)
+
+
+
+
+
+
+
+
Combines two ports with into a single virtual port.
+
Note: The devices attached to the ports must be of the same device type.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ firstPortName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ First port name
+
+
+
+
+
+
+ secondPortName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ Second port name
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
setName(name)
@@ -1709,225 +1905,6 @@
-
-
- accel
-
-
-
-
-
-
-
-
Emits when accelerometer detects movement. Measured in mG.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- z
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -2068,178 +2045,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- tilt
-
-
-
-
-
-
-
-
Emits when a tilt sensor is activated.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
@@ -2318,7 +2124,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Feb 7th 2020
+ on Mon Feb 10th 2020
using the DocStrap template .
diff --git a/docs/RemoteControlButton.html b/docs/RemoteControlButton.html
new file mode 100644
index 0000000..0e540b1
--- /dev/null
+++ b/docs/RemoteControlButton.html
@@ -0,0 +1,1264 @@
+
+
+
+
+
+
+ node-poweredup Class: RemoteControlButton
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: RemoteControlButton
+
+
+
+
+
+ RemoteControlButton
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+
+
+ <readonly> connected
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ connected
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Check if the device is still attached.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> hub
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ hub
+
+
+
+
+
+Hub
+
+
+
+
+
+
+
+
+
+
+ The Hub the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> isVirtualPort
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ isVirtualPort
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Is this device attached to a virtual port (ie. a combined device)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> mode
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ mode
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The mode the device is currently in
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> portName
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ portName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ The port the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> type
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The type of the device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Emits when a button on the remote is pressed or released.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ event
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/SimpleMediumLinearMotor.html b/docs/SimpleMediumLinearMotor.html
new file mode 100644
index 0000000..ddd2005
--- /dev/null
+++ b/docs/SimpleMediumLinearMotor.html
@@ -0,0 +1,1116 @@
+
+
+
+
+
+
+ node-poweredup Class: SimpleMediumLinearMotor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: SimpleMediumLinearMotor
+
+
+
+
+
+ SimpleMediumLinearMotor
+
+
+
+
+
+
+
+
+
+
+
+
+ new SimpleMediumLinearMotor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+
+
+ <readonly> connected
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ connected
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Check if the device is still attached.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> hub
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ hub
+
+
+
+
+
+Hub
+
+
+
+
+
+
+
+
+
+
+ The Hub the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> isVirtualPort
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ isVirtualPort
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Is this device attached to a virtual port (ie. a combined device)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> mode
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ mode
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The mode the device is currently in
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> portName
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ portName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ The port the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> type
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The type of the device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/TachoMotor.html b/docs/TachoMotor.html
new file mode 100644
index 0000000..c4301ef
--- /dev/null
+++ b/docs/TachoMotor.html
@@ -0,0 +1,2419 @@
+
+
+
+
+
+
+ node-poweredup Class: TachoMotor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: TachoMotor
+
+
+
+
+
+
+
+
+
+
+
+ new TachoMotor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+
+
+ <readonly> connected
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ connected
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Check if the device is still attached.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> hub
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ hub
+
+
+
+
+
+Hub
+
+
+
+
+
+
+
+
+
+
+ The Hub the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> isVirtualPort
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ isVirtualPort
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Is this device attached to a virtual port (ie. a combined device)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> mode
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ mode
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The mode the device is currently in
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> portName
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ portName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ The port the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> type
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The type of the device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods
+
+
+
+
+
+ brake()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of the command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rampPower(fromPower, toPower, time)
+
+
+
+
+
+
+
+
Ramp the motor power.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ fromPower
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.
+
+
+
+
+
+
+ toPower
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.
+
+
+
+
+
+
+ time
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ How long the ramp should last (in milliseconds).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful completion of command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotateByDegrees(degrees [, speed])
+
+
+
+
+
+
+
+
Rotate a motor by a given amount of degrees.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Argument
+
+
+
+ Default
+
+
+ Description
+
+
+
+
+
+
+
+
+ degrees
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ How much the motor should be rotated (in degrees).
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ 100
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful completion of command (ie. once the motor is finished).
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setBrakingStyle(style)
+
+
+
+
+
+
+
+
Set the braking style of the motor.
+
Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ style
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Either BRAKE or HOLD
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setPower(power)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ power
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of the command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setSpeed(speed)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of the command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ stop()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of the command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+ rotate
+
+
+
+
+
+
+
+
Emits when a rotation sensor is activated.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ rotation
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/TechnicColorSensor.html b/docs/TechnicColorSensor.html
new file mode 100644
index 0000000..fff63e9
--- /dev/null
+++ b/docs/TechnicColorSensor.html
@@ -0,0 +1,1552 @@
+
+
+
+
+
+
+ node-poweredup Class: TechnicColorSensor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: TechnicColorSensor
+
+
+
+
+
+ TechnicColorSensor
+
+
+
+
+
+
+
+
+
+
+
+
+ new TechnicColorSensor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+
+
+ <readonly> connected
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ connected
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Check if the device is still attached.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> hub
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ hub
+
+
+
+
+
+Hub
+
+
+
+
+
+
+
+
+
+
+ The Hub the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> isVirtualPort
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ isVirtualPort
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Is this device attached to a virtual port (ie. a combined device)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> mode
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ mode
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The mode the device is currently in
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> portName
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ portName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ The port the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> type
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The type of the device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+ ambient
+
+
+
+
+
+
+
+
Emits when the ambient light changes.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ ambient
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Percentage, from 0 to 100.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ color
+
+
+
+
+
+
+
+
Emits when a color sensor is activated.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ color
+
+
+
+
+
+Color
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ reflect
+
+
+
+
+
+
+
+
Emits when the light reflectivity changes.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ reflect
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Percentage, from 0 to 100.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/TechnicDistanceSensor.html b/docs/TechnicDistanceSensor.html
new file mode 100644
index 0000000..611d3ca
--- /dev/null
+++ b/docs/TechnicDistanceSensor.html
@@ -0,0 +1,1646 @@
+
+
+
+
+
+
+ node-poweredup Class: TechnicDistanceSensor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: TechnicDistanceSensor
+
+
+
+
+
+ TechnicDistanceSensor
+
+
+
+
+
+
+
+
+
+
+
+
+ new TechnicDistanceSensor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+
+
+ <readonly> connected
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ connected
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Check if the device is still attached.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> hub
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ hub
+
+
+
+
+
+Hub
+
+
+
+
+
+
+
+
+
+
+ The Hub the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> isVirtualPort
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ isVirtualPort
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Is this device attached to a virtual port (ie. a combined device)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> mode
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ mode
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The mode the device is currently in
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> portName
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ portName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ The port the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> type
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The type of the device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods
+
+
+
+
+
+ setBrightness(topLeft, bottomLeft, topRight, bottomRight)
+
+
+
+
+
+
+
+
Set the brightness (or turn on/off) the lights around the eyes.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ topLeft
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Top left quadrant (above left eye). 0-100 brightness.
+
+
+
+
+
+
+ bottomLeft
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Bottom left quadrant (below left eye). 0-100 brightness.
+
+
+
+
+
+
+ topRight
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Top right quadrant (above right eye). 0-100 brightness.
+
+
+
+
+
+
+ bottomRight
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Bottom right quadrant (below right eye). 0-100 brightness.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of the command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+ distance
+
+
+
+
+
+
+
+
Emits when the detected distance changes (Slow sampling covers 40mm to 2500mm).
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ distance
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Distance, from 40 to 2500mm
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ fastDistance
+
+
+
+
+
+
+
+
Emits when the detected distance changes (Fast sampling covers 50mm to 320mm).
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ fastDistance
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Distance, from 50 to 320mm
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/TechnicForceSensor.html b/docs/TechnicForceSensor.html
new file mode 100644
index 0000000..18b6c57
--- /dev/null
+++ b/docs/TechnicForceSensor.html
@@ -0,0 +1,1552 @@
+
+
+
+
+
+
+ node-poweredup Class: TechnicForceSensor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: TechnicForceSensor
+
+
+
+
+
+ TechnicForceSensor
+
+
+
+
+
+
+
+
+
+
+
+
+ new TechnicForceSensor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+
+
+ <readonly> connected
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ connected
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Check if the device is still attached.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> hub
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ hub
+
+
+
+
+
+Hub
+
+
+
+
+
+
+
+
+
+
+ The Hub the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> isVirtualPort
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ isVirtualPort
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Is this device attached to a virtual port (ie. a combined device)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> mode
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ mode
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The mode the device is currently in
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> portName
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ portName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ The port the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> type
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The type of the device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+ force
+
+
+
+
+
+
+
+
Emits when force is applied.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ force
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Force, in newtons (0-10).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ tapped
+
+
+
+
+
+
+
+
Emits when the sensor is tapped.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ tapped
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ How hard the sensor was tapped, from 0-3.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ touch
+
+
+
+
+
+
+
+
Emits when the sensor is touched.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ touch
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Touched on/off (boolean).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/TechnicLargeAngularMotor.html b/docs/TechnicLargeAngularMotor.html
new file mode 100644
index 0000000..8e6d4e8
--- /dev/null
+++ b/docs/TechnicLargeAngularMotor.html
@@ -0,0 +1,1431 @@
+
+
+
+
+
+
+ node-poweredup Class: TechnicLargeAngularMotor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: TechnicLargeAngularMotor
+
+
+
+
+
+ TechnicLargeAngularMotor
+
+
+
+
+
+
+
+
+
+
+
+
+ new TechnicLargeAngularMotor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods
+
+
+
+
+
+ gotoAngle(angle [, speed])
+
+
+
+
+
+
+
+
Rotate a motor by a given angle.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Argument
+
+
+
+ Default
+
+
+ Description
+
+
+
+
+
+
+
+
+ angle
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Absolute position the motor should go to (degrees from 0).
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ 100
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful completion of command (ie. once the motor is finished).
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotateByDegrees(degrees [, speed])
+
+
+
+
+
+
+
+
Rotate a motor by a given amount of degrees.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Argument
+
+
+
+ Default
+
+
+ Description
+
+
+
+
+
+
+
+
+ degrees
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ How much the motor should be rotated (in degrees).
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ 100
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful completion of command (ie. once the motor is finished).
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setBrakingStyle(style)
+
+
+
+
+
+
+
+
Set the braking style of the motor.
+
Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ style
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Either BRAKE or HOLD
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setSpeed(speed)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of the command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+ absolute
+
+
+
+
+
+
+
+
Emits when a the motors absolute position is changed.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ absolute
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotate
+
+
+
+
+
+
+
+
Emits when a rotation sensor is activated.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ rotation
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/TechnicLargeLinearMotor.html b/docs/TechnicLargeLinearMotor.html
new file mode 100644
index 0000000..da90676
--- /dev/null
+++ b/docs/TechnicLargeLinearMotor.html
@@ -0,0 +1,1431 @@
+
+
+
+
+
+
+ node-poweredup Class: TechnicLargeLinearMotor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: TechnicLargeLinearMotor
+
+
+
+
+
+ TechnicLargeLinearMotor
+
+
+
+
+
+
+
+
+
+
+
+
+ new TechnicLargeLinearMotor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods
+
+
+
+
+
+ gotoAngle(angle [, speed])
+
+
+
+
+
+
+
+
Rotate a motor by a given angle.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Argument
+
+
+
+ Default
+
+
+ Description
+
+
+
+
+
+
+
+
+ angle
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Absolute position the motor should go to (degrees from 0).
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ 100
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful completion of command (ie. once the motor is finished).
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotateByDegrees(degrees [, speed])
+
+
+
+
+
+
+
+
Rotate a motor by a given amount of degrees.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Argument
+
+
+
+ Default
+
+
+ Description
+
+
+
+
+
+
+
+
+ degrees
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ How much the motor should be rotated (in degrees).
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ 100
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful completion of command (ie. once the motor is finished).
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setBrakingStyle(style)
+
+
+
+
+
+
+
+
Set the braking style of the motor.
+
Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ style
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Either BRAKE or HOLD
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setSpeed(speed)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of the command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+ absolute
+
+
+
+
+
+
+
+
Emits when a the motors absolute position is changed.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ absolute
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotate
+
+
+
+
+
+
+
+
Emits when a rotation sensor is activated.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ rotation
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/TechnicMediumAngularMotor.html b/docs/TechnicMediumAngularMotor.html
new file mode 100644
index 0000000..103dd32
--- /dev/null
+++ b/docs/TechnicMediumAngularMotor.html
@@ -0,0 +1,1431 @@
+
+
+
+
+
+
+ node-poweredup Class: TechnicMediumAngularMotor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: TechnicMediumAngularMotor
+
+
+
+
+
+ TechnicMediumAngularMotor
+
+
+
+
+
+
+
+
+
+
+
+
+ new TechnicMediumAngularMotor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods
+
+
+
+
+
+ gotoAngle(angle [, speed])
+
+
+
+
+
+
+
+
Rotate a motor by a given angle.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Argument
+
+
+
+ Default
+
+
+ Description
+
+
+
+
+
+
+
+
+ angle
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Absolute position the motor should go to (degrees from 0).
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ 100
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful completion of command (ie. once the motor is finished).
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotateByDegrees(degrees [, speed])
+
+
+
+
+
+
+
+
Rotate a motor by a given amount of degrees.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Argument
+
+
+
+ Default
+
+
+ Description
+
+
+
+
+
+
+
+
+ degrees
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ How much the motor should be rotated (in degrees).
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ 100
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful completion of command (ie. once the motor is finished).
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setBrakingStyle(style)
+
+
+
+
+
+
+
+
Set the braking style of the motor.
+
Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ style
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Either BRAKE or HOLD
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setSpeed(speed)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of the command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+ absolute
+
+
+
+
+
+
+
+
Emits when a the motors absolute position is changed.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ absolute
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotate
+
+
+
+
+
+
+
+
Emits when a rotation sensor is activated.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ rotation
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/TechnicMediumHub.html b/docs/TechnicMediumHub.html
index 9c221df..777a1cb 100644
--- a/docs/TechnicMediumHub.html
+++ b/docs/TechnicMediumHub.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -513,7 +513,7 @@
- firmwareVersion
+ hardwareVersion
@@ -1409,6 +1409,202 @@
+
+
+ createVirtualPort(firstPortName, secondPortName)
+
+
+
+
+
+
+
+
Combines two ports with into a single virtual port.
+
Note: The devices attached to the ports must be of the same device type.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ firstPortName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ First port name
+
+
+
+
+
+
+ secondPortName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ Second port name
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
setName(name)
@@ -1709,225 +1905,6 @@
-
-
- accel
-
-
-
-
-
-
-
-
Emits when accelerometer detects movement. Measured in mG.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- z
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -2068,178 +2045,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- tilt
-
-
-
-
-
-
-
-
Emits when a tilt sensor is activated.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
@@ -2318,7 +2124,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Feb 7th 2020
+ on Mon Feb 10th 2020
using the DocStrap template .
diff --git a/docs/TechnicMediumHubAccelerometerSensor.html b/docs/TechnicMediumHubAccelerometerSensor.html
new file mode 100644
index 0000000..8fcb059
--- /dev/null
+++ b/docs/TechnicMediumHubAccelerometerSensor.html
@@ -0,0 +1,1312 @@
+
+
+
+
+
+
+ node-poweredup Class: TechnicMediumHubAccelerometerSensor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: TechnicMediumHubAccelerometerSensor
+
+
+
+
+
+ TechnicMediumHubAccelerometerSensor
+
+
+
+
+
+
+
+
+
+
+
+
+ new TechnicMediumHubAccelerometerSensor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+
+
+ <readonly> connected
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ connected
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Check if the device is still attached.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> hub
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ hub
+
+
+
+
+
+Hub
+
+
+
+
+
+
+
+
+
+
+ The Hub the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> isVirtualPort
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ isVirtualPort
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Is this device attached to a virtual port (ie. a combined device)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> mode
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ mode
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The mode the device is currently in
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> portName
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ portName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ The port the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> type
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The type of the device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+ accel
+
+
+
+
+
+
+
+
Emits when accelerometer detects movement. Measured in mG.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ x
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ y
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ z
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/TechnicMediumHubGyroSensor.html b/docs/TechnicMediumHubGyroSensor.html
new file mode 100644
index 0000000..dce0108
--- /dev/null
+++ b/docs/TechnicMediumHubGyroSensor.html
@@ -0,0 +1,1312 @@
+
+
+
+
+
+
+ node-poweredup Class: TechnicMediumHubGyroSensor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: TechnicMediumHubGyroSensor
+
+
+
+
+
+ TechnicMediumHubGyroSensor
+
+
+
+
+
+
+
+
+
+
+
+
+ new TechnicMediumHubGyroSensor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+
+
+ <readonly> connected
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ connected
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Check if the device is still attached.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> hub
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ hub
+
+
+
+
+
+Hub
+
+
+
+
+
+
+
+
+
+
+ The Hub the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> isVirtualPort
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ isVirtualPort
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Is this device attached to a virtual port (ie. a combined device)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> mode
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ mode
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The mode the device is currently in
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> portName
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ portName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ The port the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> type
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The type of the device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+ gyro
+
+
+
+
+
+
+
+
Emits when gyroscope detects movement. Measured in DPS - degrees per second.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ x
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ y
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ z
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/TechnicMediumHubTiltSensor.html b/docs/TechnicMediumHubTiltSensor.html
new file mode 100644
index 0000000..507708f
--- /dev/null
+++ b/docs/TechnicMediumHubTiltSensor.html
@@ -0,0 +1,1312 @@
+
+
+
+
+
+
+ node-poweredup Class: TechnicMediumHubTiltSensor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: TechnicMediumHubTiltSensor
+
+
+
+
+
+ TechnicMediumHubTiltSensor
+
+
+
+
+
+
+
+
+
+
+
+
+ new TechnicMediumHubTiltSensor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+
+
+ <readonly> connected
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ connected
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Check if the device is still attached.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> hub
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ hub
+
+
+
+
+
+Hub
+
+
+
+
+
+
+
+
+
+
+ The Hub the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> isVirtualPort
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ isVirtualPort
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Is this device attached to a virtual port (ie. a combined device)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> mode
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ mode
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The mode the device is currently in
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> portName
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ portName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ The port the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> type
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The type of the device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+ tilt
+
+
+
+
+
+
+
+
Emits when a tilt sensor is activated.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ x
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ y
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ z
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/TechnicXLargeLinearMotor.html b/docs/TechnicXLargeLinearMotor.html
new file mode 100644
index 0000000..55636fb
--- /dev/null
+++ b/docs/TechnicXLargeLinearMotor.html
@@ -0,0 +1,1431 @@
+
+
+
+
+
+
+ node-poweredup Class: TechnicXLargeLinearMotor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: TechnicXLargeLinearMotor
+
+
+
+
+
+ TechnicXLargeLinearMotor
+
+
+
+
+
+
+
+
+
+
+
+
+ new TechnicXLargeLinearMotor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods
+
+
+
+
+
+ gotoAngle(angle [, speed])
+
+
+
+
+
+
+
+
Rotate a motor by a given angle.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Argument
+
+
+
+ Default
+
+
+ Description
+
+
+
+
+
+
+
+
+ angle
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Absolute position the motor should go to (degrees from 0).
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ 100
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful completion of command (ie. once the motor is finished).
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotateByDegrees(degrees [, speed])
+
+
+
+
+
+
+
+
Rotate a motor by a given amount of degrees.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+ Argument
+
+
+
+ Default
+
+
+ Description
+
+
+
+
+
+
+
+
+ degrees
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ How much the motor should be rotated (in degrees).
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+ <optional>
+
+
+
+
+
+
+
+
+
+
+
+ 100
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful completion of command (ie. once the motor is finished).
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setBrakingStyle(style)
+
+
+
+
+
+
+
+
Set the braking style of the motor.
+
Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ style
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ Either BRAKE or HOLD
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setSpeed(speed)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ speed
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of the command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+ absolute
+
+
+
+
+
+
+
+
Emits when a the motors absolute position is changed.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ absolute
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotate
+
+
+
+
+
+
+
+
Emits when a rotation sensor is activated.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ rotation
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/TiltSensor.html b/docs/TiltSensor.html
new file mode 100644
index 0000000..f079ef9
--- /dev/null
+++ b/docs/TiltSensor.html
@@ -0,0 +1,1288 @@
+
+
+
+
+
+
+ node-poweredup Class: TiltSensor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: TiltSensor
+
+
+
+
+
+
+
+
+
+
+
+ new TiltSensor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+
+
+ <readonly> connected
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ connected
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Check if the device is still attached.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> hub
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ hub
+
+
+
+
+
+Hub
+
+
+
+
+
+
+
+
+
+
+ The Hub the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> isVirtualPort
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ isVirtualPort
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Is this device attached to a virtual port (ie. a combined device)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> mode
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ mode
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The mode the device is currently in
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> portName
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ portName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ The port the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> type
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The type of the device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+ tilt
+
+
+
+
+
+
+
+
Emits when a tilt sensor is activated.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ x
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ y
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/TrainMotor.html b/docs/TrainMotor.html
new file mode 100644
index 0000000..a3c62cc
--- /dev/null
+++ b/docs/TrainMotor.html
@@ -0,0 +1,1752 @@
+
+
+
+
+
+
+ node-poweredup Class: TrainMotor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: TrainMotor
+
+
+
+
+
+
+
+
+
+
+
+ new TrainMotor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+
+
+ <readonly> connected
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ connected
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Check if the device is still attached.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> hub
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ hub
+
+
+
+
+
+Hub
+
+
+
+
+
+
+
+
+
+
+ The Hub the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> isVirtualPort
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ isVirtualPort
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Is this device attached to a virtual port (ie. a combined device)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> mode
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ mode
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The mode the device is currently in
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> portName
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ portName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ The port the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> type
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The type of the device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Methods
+
+
+
+
+
+ brake()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of the command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rampPower(fromPower, toPower, time)
+
+
+
+
+
+
+
+
Ramp the motor power.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ fromPower
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.
+
+
+
+
+
+
+ toPower
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.
+
+
+
+
+
+
+ time
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ How long the ramp should last (in milliseconds).
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful completion of command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ setPower(power)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ power
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of the command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ stop()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Returns:
+
+
+
+
Resolved upon successful issuance of the command.
+
+
+
+
+
+
+ Type
+
+
+
+Promise
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/VoltageSensor.html b/docs/VoltageSensor.html
new file mode 100644
index 0000000..33779a0
--- /dev/null
+++ b/docs/VoltageSensor.html
@@ -0,0 +1,1264 @@
+
+
+
+
+
+
+ node-poweredup Class: VoltageSensor
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Class: VoltageSensor
+
+
+
+
+
+ VoltageSensor
+
+
+
+
+
+
+
+
+
+
+
+
+ new VoltageSensor()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Extends
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Members
+
+
+
+
+
+ <readonly> connected
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ connected
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Check if the device is still attached.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> hub
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ hub
+
+
+
+
+
+Hub
+
+
+
+
+
+
+
+
+
+
+ The Hub the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> isVirtualPort
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ isVirtualPort
+
+
+
+
+
+boolean
+
+
+
+
+
+
+
+
+
+
+ Is this device attached to a virtual port (ie. a combined device)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> mode
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ mode
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The mode the device is currently in
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> portName
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ portName
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+ The port the device is attached to.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <readonly> type
+
+
+
+
+
+
+
+
+
+
+
+
+ Properties:
+
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ type
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+ The type of the device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Events
+
+
+
+
+
+ voltage
+
+
+
+
+
+
+
+
Emits when a voltage change is detected.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ voltage
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ node-poweredup by Nathan Kellenicki licensed under the MIT license.
+
+
+
+ Documentation generated by JSDoc 3.6.3
+
+ on Mon Feb 10th 2020
+
+ using the DocStrap template .
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html
index 5479d68..b4f195f 100644
--- a/docs/WeDo2SmartHub.html
+++ b/docs/WeDo2SmartHub.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -501,7 +501,7 @@
- firmwareVersion
+ hardwareVersion
@@ -1854,7 +1854,7 @@
Documentation generated by JSDoc 3.6.3
- on Fri Feb 7th 2020
+ on Mon Feb 10th 2020
using the DocStrap template .
diff --git a/docs/classes.list.html b/docs/classes.list.html
index 5d56af0..d5c59b7 100644
--- a/docs/classes.list.html
+++ b/docs/classes.list.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -142,27 +142,135 @@
Classes
+ AbsoluteMotor
+
+
BaseHub
+ BasicMotor
+
+
+ BoostMoveHub
+
+
+ ColorDistanceSensor
+
+
+ ControlPlusHub
+
+
+ CurrentSensor
+
+
+ Device
+
+
DuploTrainBase
+ DuploTrainBaseColorSensor
+
+
+ DuploTrainBaseMotor
+
+
+ DuploTrainBaseSpeaker
+
+
+ DuploTraniBaseSpeedometer
+
+
Hub
+ HubLED
+
+
+ Light
+
+
LPF2Hub
+ MediumLinearMotor
+
+
+ MotionSensor
+
+
MoveHub
+ MoveHubMediumLinearMotor
+
+
+ MoveHubTiltSensor
+
+
+ PiezoBuzzer
+
+
+ PUPHub
+
+
+ PUPRemote
+
+
RemoteControl
+ RemoteControlButton
+
+
+ SimpleMediumLinearMotor
+
+
+ TachoMotor
+
+
+ TechnicColorSensor
+
+
+ TechnicDistanceSensor
+
+
+ TechnicForceSensor
+
+
+ TechnicLargeAngularMotor
+
+
+ TechnicLargeLinearMotor
+
+
+ TechnicMediumAngularMotor
+
+
TechnicMediumHub
+ TechnicMediumHubAccelerometerSensor
+
+
+ TechnicMediumHubGyroSensor
+
+
+ TechnicMediumHubTiltSensor
+
+
+ TechnicXLargeLinearMotor
+
+
+ TiltSensor
+
+
+ TrainMotor
+
+
+ VoltageSensor
+
+
WeDo2SmartHub
@@ -200,6 +308,12 @@
+ Type:
+object
+
+
+
+
@@ -290,7 +404,722 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ rotate
+
+
+
+
+
+
+
+
Emits when a rotation sensor is activated.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ rotation
+
+
+
+
+
+number
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ attach
+
+
+
+
+
+
+
+
Emits when a device is attached to the Hub.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ device
+
+
+
+
+
+Device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Emits when a button is pressed.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ button
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ state
+
+
+
+
+
+ButtonState
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ detach
+
+
+
+
+
+
+
+
Emits when a device is detached from the Hub.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ device
+
+
+
+
+
+Device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ disconnect
+
+
+
+
+
+
+
+
Emits when the hub is disconnected.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
@@ -338,6 +1167,12 @@
+ Type:
+object
+
+
+
+
@@ -428,7 +1263,7 @@
@@ -476,6 +1311,12 @@
+ Type:
+object
+
+
+
+
@@ -590,7 +1431,7 @@
@@ -638,6 +1479,12 @@
+ Type:
+object
+
+
+
+
@@ -728,7 +1575,569 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ attach
+
+
+
+
+
+
+
+
Emits when a device is attached to the Hub.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ device
+
+
+
+
+
+Device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Emits when a button is pressed.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ button
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ state
+
+
+
+
+
+ButtonState
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ detach
+
+
+
+
+
+
+
+
Emits when a device is detached from the Hub.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ device
+
+
+
+
+
+Device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ disconnect
+
+
+
+
+
+
+
+
Emits when the hub is disconnected.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
@@ -776,6 +2185,12 @@
+ Type:
+object
+
+
+
+
@@ -866,226 +2281,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- accel
-
-
-
-
-
-
-
-
Emits when accelerometer detects movement. Measured in mG.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- z
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
@@ -1256,178 +2452,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- tilt
-
-
-
-
-
-
-
-
Emits when a tilt sensor is activated.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
@@ -1475,6 +2500,12 @@
+ Type:
+object
+
+
+
+
@@ -1565,7 +2596,7 @@
@@ -1613,6 +2644,12 @@
+ Type:
+object
+
+
+
+
@@ -1703,226 +2740,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- accel
-
-
-
-
-
-
-
-
Emits when accelerometer detects movement. Measured in mG.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- z
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
@@ -2004,7 +2822,7 @@
-Device
+Device
@@ -2060,145 +2878,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- attach
-
-
-
-
-
-
-
-
Emits when a device is detached from the Hub.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- device
-
-
-
-
-
-Device
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
@@ -2369,7 +3049,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ detach
+
+
+
+
+
+
+
+
Emits when a device is detached from the Hub.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ device
+
+
+
+
+
+Device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
@@ -2484,387 +3302,6 @@
-
-
-
-
-
-
- tilt
-
-
-
-
-
-
-
-
Emits when a tilt sensor is activated.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- accel
-
-
-
-
-
-
-
-
Emits when accelerometer detects movement. Measured in mG.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- z
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -3000,7 +3437,7 @@
@@ -3033,7 +3470,7 @@
- tilt
+ rotate
@@ -3041,13 +3478,19 @@
-
Emits when a tilt sensor is activated.
+
Emits when a rotation sensor is activated.
+ Type:
+object
+
+
+
+
@@ -3076,31 +3519,7 @@
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
+ rotation
@@ -3135,6 +3554,15 @@
+ Inherited From:
+
+
+
+
@@ -3161,8 +3589,8 @@
@@ -3210,6 +3638,12 @@
+ Type:
+object
+
+
+
+
@@ -3300,226 +3734,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- accel
-
-
-
-
-
-
-
-
Emits when accelerometer detects movement. Measured in mG.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- port
-
-
-
-
-
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- z
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
@@ -3690,7 +3905,7 @@
@@ -3723,7 +3938,7 @@
- tilt
+ rotate
@@ -3731,13 +3946,19 @@
-
Emits when a tilt sensor is activated.
+
Emits when a rotation sensor is activated.
+ Type:
+object
+
+
+
+
@@ -3766,31 +3987,7 @@
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
+ rotation
@@ -3829,7 +4026,7 @@
@@ -3860,8 +4057,8 @@
@@ -3909,6 +4106,12 @@
+ Type:
+object
+
+
+
+
@@ -4023,7 +4226,7 @@
@@ -4056,7 +4259,7 @@
- accel
+ attach
@@ -4064,7 +4267,7 @@
-
Emits when accelerometer detects movement. Measured in mG.
+
Emits when a device is attached to the Hub.
@@ -4099,85 +4302,13 @@
- port
+ device
-string
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- z
-
-
-
-
-
-number
+Device
@@ -4210,7 +4341,7 @@
@@ -4241,8 +4372,995 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Emits when a button is pressed.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ button
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ state
+
+
+
+
+
+ButtonState
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+ Overrides:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ detach
+
+
+
+
+
+
+
+
Emits when a device is detached from the Hub.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ device
+
+
+
+
+
+Device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ disconnect
+
+
+
+
+
+
+
+
Emits when the hub is disconnected.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ attach
+
+
+
+
+
+
+
+
Emits when a device is attached to the Hub.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ device
+
+
+
+
+
+Device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Emits when a button is pressed.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ button
+
+
+
+
+
+string
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ state
+
+
+
+
+
+ButtonState
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+ Overrides:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ detach
+
+
+
+
+
+
+
+
Emits when a device is detached from the Hub.
+
+
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name
+
+
+ Type
+
+
+
+
+
+ Description
+
+
+
+
+
+
+
+
+ device
+
+
+
+
+
+Device
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ disconnect
+
+
+
+
+
+
+
+
Emits when the hub is disconnected.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Inherited From:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Source:
+
+
@@ -4413,178 +5531,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- tilt
-
-
-
-
-
-
-
-
Emits when a tilt sensor is activated.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- x
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- y
-
-
-
-
-
-number
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Inherited From:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
@@ -4632,6 +5579,12 @@
+ Type:
+object
+
+
+
+
@@ -4722,7 +5675,7 @@
@@ -4770,6 +5723,12 @@
+ Type:
+object
+
+
+
+
@@ -4860,7 +5819,7 @@
@@ -4893,7 +5852,7 @@
- from 0 to 100.
+ ambient
@@ -4908,6 +5867,12 @@
+ Type:
+object
+
+
+
+
@@ -4953,7 +5918,7 @@
-
+ Percentage, from 0 to 100.
@@ -4998,7 +5963,7 @@
@@ -5046,6 +6011,12 @@
+ Type:
+object
+
+
+
+
@@ -5136,7 +6107,7 @@
@@ -5169,7 +6140,7 @@
- from 0 to 100.
+ reflect
@@ -5184,6 +6155,12 @@
+ Type:
+object
+
+
+
+
@@ -5229,7 +6206,7 @@
-
+ Percentage, from 0 to 100.
@@ -5274,7 +6251,7 @@
@@ -5307,7 +6284,7 @@
- from 40 to 2500mm
+ distance
@@ -5322,6 +6299,12 @@
+ Type:
+object
+
+
+
+
@@ -5367,7 +6350,7 @@
-
+ Distance, from 40 to 2500mm
@@ -5412,7 +6395,7 @@
@@ -5445,7 +6428,7 @@
- from 50 to 320mm
+ fastDistance
@@ -5460,6 +6443,12 @@
+ Type:
+object
+
+
+
+
@@ -5505,7 +6494,7 @@
-
+ Distance, from 50 to 320mm
@@ -5550,7 +6539,7 @@
@@ -5583,145 +6572,7 @@
- touch Touched on/off (boolean).
-
-
-
-
-
-
-
-
Emits when the sensor is touched.
-
-
-
-
-
-
-
-
-
- Parameters:
-
-
-
-
-
-
- Name
-
-
- Type
-
-
-
-
-
- Description
-
-
-
-
-
-
-
-
- touch
-
-
-
-
-
-boolean
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Source:
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- in newtons (0-10).
+ force
@@ -5736,6 +6587,12 @@
+ Type:
+object
+
+
+
+
@@ -5781,7 +6638,7 @@
-
+ Force, in newtons (0-10).
@@ -5826,7 +6683,7 @@
@@ -5859,7 +6716,7 @@
- from 0-3.
+ tapped
@@ -5874,6 +6731,12 @@
+ Type:
+object
+
+
+
+
@@ -5919,7 +6782,7 @@
-
+ How hard the sensor was tapped, from 0-3.
@@ -5964,7 +6827,7 @@