diff --git a/docs/AbsoluteMotor.html b/docs/AbsoluteMotor.html
index 87f521d..17c3eb1 100644
--- a/docs/AbsoluteMotor.html
+++ b/docs/AbsoluteMotor.html
@@ -40,7 +40,7 @@
Events
@@ -548,7 +548,7 @@
@@ -660,7 +660,7 @@
@@ -887,7 +887,7 @@
@@ -2126,9 +2126,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/BaseHub.html b/docs/BaseHub.html
index d173a07..fe0ce37 100644
--- a/docs/BaseHub.html
+++ b/docs/BaseHub.html
@@ -40,7 +40,7 @@
Events
@@ -1323,9 +1323,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/BasicMotor.html b/docs/BasicMotor.html
index 2f91cbb..753c786 100644
--- a/docs/BasicMotor.html
+++ b/docs/BasicMotor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1620,9 +1620,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/ColorDistanceSensor.html b/docs/ColorDistanceSensor.html
index f5776f2..346c5bf 100644
--- a/docs/ColorDistanceSensor.html
+++ b/docs/ColorDistanceSensor.html
@@ -40,7 +40,7 @@
Events
@@ -142,7 +142,7 @@
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1081,7 +1081,7 @@
@@ -1243,7 +1243,7 @@
@@ -1406,7 +1406,7 @@
@@ -1616,7 +1616,7 @@
@@ -1827,7 +1827,7 @@
@@ -2003,7 +2003,7 @@
@@ -2171,7 +2171,7 @@
@@ -2315,7 +2315,7 @@
@@ -2392,9 +2392,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/CurrentSensor.html b/docs/CurrentSensor.html
index 5453b9c..24a95e9 100644
--- a/docs/CurrentSensor.html
+++ b/docs/CurrentSensor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1168,9 +1168,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/Device.html b/docs/Device.html
index f1e1a92..4e57b4d 100644
--- a/docs/Device.html
+++ b/docs/Device.html
@@ -40,7 +40,7 @@
Events
@@ -300,7 +300,7 @@
@@ -419,7 +419,7 @@
@@ -538,7 +538,7 @@
@@ -657,7 +657,7 @@
@@ -776,7 +776,7 @@
@@ -895,7 +895,7 @@
@@ -966,9 +966,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html
index fef5f1d..f9cb8ae 100644
--- a/docs/DuploTrainBase.html
+++ b/docs/DuploTrainBase.html
@@ -40,7 +40,7 @@
Events
@@ -2077,9 +2077,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/DuploTrainBaseColorSensor.html b/docs/DuploTrainBaseColorSensor.html
index 758a431..c983960 100644
--- a/docs/DuploTrainBaseColorSensor.html
+++ b/docs/DuploTrainBaseColorSensor.html
@@ -40,7 +40,7 @@
Events
@@ -142,7 +142,7 @@
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1077,6 +1077,150 @@
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ intensity
+
+
+
+
+
+
+
+
Emits when intensity of the color/light changes.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ intensity |
+
+
+
+
+
+number
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1235,7 +1379,7 @@
@@ -1427,7 +1571,7 @@
@@ -1504,9 +1648,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/DuploTrainBaseMotor.html b/docs/DuploTrainBaseMotor.html
index 19c4ebf..b80dfb0 100644
--- a/docs/DuploTrainBaseMotor.html
+++ b/docs/DuploTrainBaseMotor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1656,9 +1656,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/DuploTrainBaseSpeaker.html b/docs/DuploTrainBaseSpeaker.html
index 708d82c..d2a9ded 100644
--- a/docs/DuploTrainBaseSpeaker.html
+++ b/docs/DuploTrainBaseSpeaker.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1348,9 +1348,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/DuploTraniBaseSpeedometer.html b/docs/DuploTraniBaseSpeedometer.html
index 46ebff8..edbc5e6 100644
--- a/docs/DuploTraniBaseSpeedometer.html
+++ b/docs/DuploTraniBaseSpeedometer.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1020,9 +1020,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/Hub.html b/docs/Hub.html
index 60614ee..565d748 100644
--- a/docs/Hub.html
+++ b/docs/Hub.html
@@ -40,7 +40,7 @@
Events
@@ -3756,9 +3756,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/HubLED.html b/docs/HubLED.html
index 0e698e4..9bd3075 100644
--- a/docs/HubLED.html
+++ b/docs/HubLED.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1396,9 +1396,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html
index 5544133..6f30228 100644
--- a/docs/LPF2Hub.html
+++ b/docs/LPF2Hub.html
@@ -40,7 +40,7 @@
Events
@@ -2035,9 +2035,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/Light.html b/docs/Light.html
index 5f9048e..875c991 100644
--- a/docs/Light.html
+++ b/docs/Light.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1396,9 +1396,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/Mario.html b/docs/Mario.html
index ff7bff4..d95f6c5 100644
--- a/docs/Mario.html
+++ b/docs/Mario.html
@@ -40,7 +40,7 @@
Events
@@ -2122,9 +2122,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/MarioAccelerometer.html b/docs/MarioAccelerometer.html
index d2e588f..cf2772f 100644
--- a/docs/MarioAccelerometer.html
+++ b/docs/MarioAccelerometer.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1360,9 +1360,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/MarioBarcodeSensor.html b/docs/MarioBarcodeSensor.html
index 43888f2..58e9539 100644
--- a/docs/MarioBarcodeSensor.html
+++ b/docs/MarioBarcodeSensor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1360,9 +1360,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/MarioPantsSensor.html b/docs/MarioPantsSensor.html
index c07258b..3ad0b12 100644
--- a/docs/MarioPantsSensor.html
+++ b/docs/MarioPantsSensor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1168,9 +1168,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/MediumLinearMotor.html b/docs/MediumLinearMotor.html
index 2d4786d..34f51f5 100644
--- a/docs/MediumLinearMotor.html
+++ b/docs/MediumLinearMotor.html
@@ -40,7 +40,7 @@
Events
@@ -374,7 +374,7 @@
@@ -1469,9 +1469,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/MotionSensor.html b/docs/MotionSensor.html
index 8096be1..0afb31e 100644
--- a/docs/MotionSensor.html
+++ b/docs/MotionSensor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1168,9 +1168,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/MoveHub.html b/docs/MoveHub.html
index befa89f..3f0f973 100644
--- a/docs/MoveHub.html
+++ b/docs/MoveHub.html
@@ -40,7 +40,7 @@
Events
@@ -2122,9 +2122,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/MoveHubMediumLinearMotor.html b/docs/MoveHubMediumLinearMotor.html
index c3b72d3..24857a8 100644
--- a/docs/MoveHubMediumLinearMotor.html
+++ b/docs/MoveHubMediumLinearMotor.html
@@ -40,7 +40,7 @@
Events
@@ -374,7 +374,7 @@
@@ -1469,9 +1469,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/MoveHubTiltSensor.html b/docs/MoveHubTiltSensor.html
index 5b0c681..551efff 100644
--- a/docs/MoveHubTiltSensor.html
+++ b/docs/MoveHubTiltSensor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1192,9 +1192,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/PiezoBuzzer.html b/docs/PiezoBuzzer.html
index c621076..ad3606c 100644
--- a/docs/PiezoBuzzer.html
+++ b/docs/PiezoBuzzer.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1210,9 +1210,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/RemoteControl.html b/docs/RemoteControl.html
index 8faf183..fba4db4 100644
--- a/docs/RemoteControl.html
+++ b/docs/RemoteControl.html
@@ -40,7 +40,7 @@
Events
@@ -2122,9 +2122,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/RemoteControlButton.html b/docs/RemoteControlButton.html
index 63c8f2e..20a3604 100644
--- a/docs/RemoteControlButton.html
+++ b/docs/RemoteControlButton.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1168,9 +1168,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/SimpleMediumLinearMotor.html b/docs/SimpleMediumLinearMotor.html
index 92a9511..079ccba 100644
--- a/docs/SimpleMediumLinearMotor.html
+++ b/docs/SimpleMediumLinearMotor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1020,9 +1020,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TachoMotor.html b/docs/TachoMotor.html
index 177f5eb..480a81b 100644
--- a/docs/TachoMotor.html
+++ b/docs/TachoMotor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1477,7 +1477,7 @@
@@ -2810,9 +2810,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TechnicColorSensor.html b/docs/TechnicColorSensor.html
index 19c137d..acdcaad 100644
--- a/docs/TechnicColorSensor.html
+++ b/docs/TechnicColorSensor.html
@@ -40,7 +40,7 @@
Events
@@ -142,7 +142,7 @@
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1129,7 +1129,7 @@
@@ -1305,7 +1305,7 @@
@@ -1449,7 +1449,7 @@
@@ -1593,7 +1593,7 @@
@@ -1670,9 +1670,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TechnicDistanceSensor.html b/docs/TechnicDistanceSensor.html
index f370e94..98966af 100644
--- a/docs/TechnicDistanceSensor.html
+++ b/docs/TechnicDistanceSensor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1550,9 +1550,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TechnicForceSensor.html b/docs/TechnicForceSensor.html
index bbc7854..8df77bd 100644
--- a/docs/TechnicForceSensor.html
+++ b/docs/TechnicForceSensor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1456,9 +1456,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TechnicLargeAngularMotor.html b/docs/TechnicLargeAngularMotor.html
index 5b0d03b..4d0bf7d 100644
--- a/docs/TechnicLargeAngularMotor.html
+++ b/docs/TechnicLargeAngularMotor.html
@@ -40,7 +40,7 @@
Events
@@ -566,7 +566,7 @@
@@ -687,7 +687,7 @@
@@ -914,7 +914,7 @@
@@ -2162,9 +2162,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TechnicLargeLinearMotor.html b/docs/TechnicLargeLinearMotor.html
index b6cd814..b124ec9 100644
--- a/docs/TechnicLargeLinearMotor.html
+++ b/docs/TechnicLargeLinearMotor.html
@@ -40,7 +40,7 @@
Events
@@ -566,7 +566,7 @@
@@ -687,7 +687,7 @@
@@ -914,7 +914,7 @@
@@ -2162,9 +2162,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TechnicMediumAngularMotor.html b/docs/TechnicMediumAngularMotor.html
index f8678f6..1104d29 100644
--- a/docs/TechnicMediumAngularMotor.html
+++ b/docs/TechnicMediumAngularMotor.html
@@ -40,7 +40,7 @@
Events
@@ -566,7 +566,7 @@
@@ -687,7 +687,7 @@
@@ -914,7 +914,7 @@
@@ -2162,9 +2162,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TechnicMediumHub.html b/docs/TechnicMediumHub.html
index 6f57095..6700cbc 100644
--- a/docs/TechnicMediumHub.html
+++ b/docs/TechnicMediumHub.html
@@ -40,7 +40,7 @@
Events
@@ -2122,9 +2122,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TechnicMediumHubAccelerometerSensor.html b/docs/TechnicMediumHubAccelerometerSensor.html
index 66be2cb..87dbddf 100644
--- a/docs/TechnicMediumHubAccelerometerSensor.html
+++ b/docs/TechnicMediumHubAccelerometerSensor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1216,9 +1216,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TechnicMediumHubGyroSensor.html b/docs/TechnicMediumHubGyroSensor.html
index 11539d9..b70f383 100644
--- a/docs/TechnicMediumHubGyroSensor.html
+++ b/docs/TechnicMediumHubGyroSensor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1216,9 +1216,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TechnicMediumHubTiltSensor.html b/docs/TechnicMediumHubTiltSensor.html
index 2bda670..f096d11 100644
--- a/docs/TechnicMediumHubTiltSensor.html
+++ b/docs/TechnicMediumHubTiltSensor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1216,9 +1216,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TechnicXLargeLinearMotor.html b/docs/TechnicXLargeLinearMotor.html
index 5c3abfd..0e96e90 100644
--- a/docs/TechnicXLargeLinearMotor.html
+++ b/docs/TechnicXLargeLinearMotor.html
@@ -40,7 +40,7 @@
Events
@@ -566,7 +566,7 @@
@@ -687,7 +687,7 @@
@@ -914,7 +914,7 @@
@@ -2162,9 +2162,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TiltSensor.html b/docs/TiltSensor.html
index 52f9e74..08a8e9e 100644
--- a/docs/TiltSensor.html
+++ b/docs/TiltSensor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1192,9 +1192,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/TrainMotor.html b/docs/TrainMotor.html
index d6ff106..bd8b881 100644
--- a/docs/TrainMotor.html
+++ b/docs/TrainMotor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1656,9 +1656,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/VoltageSensor.html b/docs/VoltageSensor.html
index 8ee0ffe..177fb90 100644
--- a/docs/VoltageSensor.html
+++ b/docs/VoltageSensor.html
@@ -40,7 +40,7 @@
Events
@@ -309,7 +309,7 @@
@@ -437,7 +437,7 @@
@@ -565,7 +565,7 @@
@@ -693,7 +693,7 @@
@@ -821,7 +821,7 @@
@@ -949,7 +949,7 @@
@@ -1168,9 +1168,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html
index a6c8532..38f4a6d 100644
--- a/docs/WeDo2SmartHub.html
+++ b/docs/WeDo2SmartHub.html
@@ -40,7 +40,7 @@
Events
@@ -1852,9 +1852,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/classes.list.html b/docs/classes.list.html
index 9d50f35..e10dcb0 100644
--- a/docs/classes.list.html
+++ b/docs/classes.list.html
@@ -40,7 +40,7 @@
Events
@@ -701,7 +701,7 @@
@@ -869,7 +869,7 @@
@@ -1013,7 +1013,7 @@
@@ -1458,6 +1458,150 @@
+
+
+
+
+
+
+
+
+
+ Source:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ intensity
+
+
+
+
+
+
+
+
Emits when intensity of the color/light changes.
+
+
+
+
+
+
+ Type:
+object
+
+
+
+
+
+
+
+ Parameters:
+
+
+
+
+
+
+ Name |
+
+
+ Type |
+
+
+
+
+
+ Description |
+
+
+
+
+
+
+
+
+ intensity |
+
+
+
+
+
+number
+
+
+
+
+ |
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1616,7 +1760,7 @@
@@ -1808,7 +1952,7 @@
@@ -5028,7 +5172,7 @@
@@ -5172,7 +5316,7 @@
@@ -5316,7 +5460,7 @@
@@ -8558,9 +8702,9 @@
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_absolutemotor.js.html b/docs/devices_absolutemotor.js.html
index ccf7df9..7de72bc 100644
--- a/docs/devices_absolutemotor.js.html
+++ b/docs/devices_absolutemotor.js.html
@@ -40,7 +40,7 @@
Events
@@ -114,7 +114,7 @@ class AbsoluteMotor extends tachomotor_1.TachoMotor {
const mode = this._mode;
switch (mode) {
case Mode.ABSOLUTE:
- const angle = utils_1.normalizeAngle(message.readInt16LE(this.isWeDo2SmartHub ? 2 : 4));
+ const angle = (0, utils_1.normalizeAngle)(message.readInt16LE(this.isWeDo2SmartHub ? 2 : 4));
/**
* Emits when a the motors absolute position is changed.
* @event AbsoluteMotor#absolute
@@ -144,24 +144,23 @@ class AbsoluteMotor extends tachomotor_1.TachoMotor {
}
this.cancelEventTimer();
return new Promise((resolve) => {
- this._busy = true;
if (speed === undefined || speed === null) {
speed = 100;
}
let message;
if (angle instanceof Array) {
- message = Buffer.from([0x81, this.portId, 0x11, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, utils_1.mapSpeed(speed), this._maxPower, this._brakeStyle, this.useProfile()]);
- message.writeInt32LE(utils_1.normalizeAngle(angle[0]), 4);
- message.writeInt32LE(utils_1.normalizeAngle(angle[1]), 8);
+ message = Buffer.from([0x81, this.portId, 0x11, 0x0e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, (0, utils_1.mapSpeed)(speed), this._maxPower, this._brakeStyle, this.useProfile()]);
+ message.writeInt32LE((0, utils_1.normalizeAngle)(angle[0]), 4);
+ message.writeInt32LE((0, utils_1.normalizeAngle)(angle[1]), 8);
}
else {
- message = Buffer.from([0x81, this.portId, 0x11, 0x0d, 0x00, 0x00, 0x00, 0x00, utils_1.mapSpeed(speed), this._maxPower, this._brakeStyle, this.useProfile()]);
- message.writeInt32LE(utils_1.normalizeAngle(angle), 4);
+ message = Buffer.from([0x81, this.portId, 0x11, 0x0d, 0x00, 0x00, 0x00, 0x00, (0, utils_1.mapSpeed)(speed), this._maxPower, this._brakeStyle, this.useProfile()]);
+ message.writeInt32LE((0, utils_1.normalizeAngle)(angle), 4);
}
this.send(message);
- this._finished = () => {
+ this._finishedCallbacks.push(() => {
return resolve();
- };
+ });
});
}
/**
@@ -261,9 +260,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_basicmotor.js.html b/docs/devices_basicmotor.js.html
index 64ad24a..2ac85bc 100644
--- a/docs/devices_basicmotor.js.html
+++ b/docs/devices_basicmotor.js.html
@@ -40,7 +40,7 @@
Events
@@ -120,7 +120,7 @@ class BasicMotor extends device_1.Device {
if (interrupt) {
this.cancelEventTimer();
}
- return this.writeDirect(0x00, Buffer.from([utils_1.mapSpeed(power)]));
+ return this.writeDirect(0x00, Buffer.from([(0, utils_1.mapSpeed)(power)]));
}
/**
* Ramp the motor power.
@@ -133,7 +133,7 @@ class BasicMotor extends device_1.Device {
rampPower(fromPower, toPower, time) {
this.cancelEventTimer();
return new Promise((resolve) => {
- utils_1.calculateRamp(this, fromPower, toPower, time)
+ (0, utils_1.calculateRamp)(this, fromPower, toPower, time)
.on("changePower", (power) => {
this.setPower(power, false);
})
@@ -203,9 +203,9 @@ exports.BasicMotor = BasicMotor;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_colordistancesensor.js.html b/docs/devices_colordistancesensor.js.html
index 71246c3..af3dc0c 100644
--- a/docs/devices_colordistancesensor.js.html
+++ b/docs/devices_colordistancesensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -101,6 +101,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.Output = exports.ModeMap = exports.Mode = exports.ColorDistanceSensor = void 0;
const device_1 = require("./device");
const Consts = __importStar(require("../consts"));
+const utils_1 = require("../utils");
/**
* @class ColorDistanceSensor
* @extends Device
@@ -114,7 +115,7 @@ class ColorDistanceSensor extends device_1.Device {
switch (mode) {
case Mode.COLOR:
if (message[this.isWeDo2SmartHub ? 2 : 4] <= 10) {
- const color = message[this.isWeDo2SmartHub ? 2 : 4];
+ const color = (0, utils_1.parseColor)(message[this.isWeDo2SmartHub ? 2 : 4]);
/**
* Emits when a color sensor is activated.
* @event ColorDistanceSensor#color
@@ -333,9 +334,9 @@ var Output;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_currentsensor.js.html b/docs/devices_currentsensor.js.html
index 6aea8a3..9280053 100644
--- a/docs/devices_currentsensor.js.html
+++ b/docs/devices_currentsensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -197,9 +197,9 @@ const MaxCurrentRaw = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_device.js.html b/docs/devices_device.js.html
index 1ff9fc3..d21225e 100644
--- a/docs/devices_device.js.html
+++ b/docs/devices_device.js.html
@@ -40,7 +40,7 @@
Events
@@ -111,6 +111,7 @@ class Device extends events_1.EventEmitter {
this.autoSubscribe = true;
this.values = {};
this._busy = false;
+ this._finishedCallbacks = [];
this._connected = true;
this._modeMap = {};
this._isVirtualPort = false;
@@ -233,11 +234,13 @@ class Device extends events_1.EventEmitter {
requestUpdate() {
this.send(Buffer.from([0x21, this.portId, 0x00]));
}
- finish() {
- this._busy = false;
- if (this._finished) {
- this._finished();
- this._finished = undefined;
+ finish(message) {
+ this._busy = (message & 0x01) === 0x01;
+ while (this._finishedCallbacks.length > Number(this._busy)) {
+ const callback = this._finishedCallbacks.shift();
+ if (callback) {
+ callback();
+ }
}
}
setEventTimer(timer) {
@@ -299,9 +302,9 @@ exports.Device = Device;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_duplotrainbasecolorsensor.js.html b/docs/devices_duplotrainbasecolorsensor.js.html
index 83aa031..0d5ebf2 100644
--- a/docs/devices_duplotrainbasecolorsensor.js.html
+++ b/docs/devices_duplotrainbasecolorsensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -101,6 +101,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.ModeMap = exports.Mode = exports.DuploTrainBaseColorSensor = void 0;
const device_1 = require("./device");
const Consts = __importStar(require("../consts"));
+const utils_1 = require("../utils");
/**
* @class DuploTrainBaseColorSensor
* @extends Device
@@ -112,9 +113,19 @@ class DuploTrainBaseColorSensor extends device_1.Device {
receive(message) {
const mode = this._mode;
switch (mode) {
+ case Mode.INTENSITY:
+ const intensity = message[4];
+ /**
+ * Emits when intensity of the color/light changes.
+ * @event DuploTrainBaseColorSensor#intensity
+ * @type {object}
+ * @param {number} intensity
+ */
+ this.notify("intensity", { intensity });
+ break;
case Mode.COLOR:
if (message[4] <= 10) {
- const color = message[4];
+ const color = (0, utils_1.parseColor)(message[4]);
/**
* Emits when a color sensor is activated.
* @event DuploTrainBaseColorSensor#color
@@ -154,11 +165,13 @@ class DuploTrainBaseColorSensor extends device_1.Device {
exports.DuploTrainBaseColorSensor = DuploTrainBaseColorSensor;
var Mode;
(function (Mode) {
- Mode[Mode["COLOR"] = 0] = "COLOR";
+ Mode[Mode["INTENSITY"] = 0] = "INTENSITY";
+ Mode[Mode["COLOR"] = 1] = "COLOR";
Mode[Mode["REFLECTIVITY"] = 2] = "REFLECTIVITY";
Mode[Mode["RGB"] = 3] = "RGB";
})(Mode = exports.Mode || (exports.Mode = {}));
exports.ModeMap = {
+ "intensity": Mode.INTENSITY,
"color": Mode.COLOR,
"reflect": Mode.REFLECTIVITY,
"rgb": Mode.RGB
@@ -206,9 +219,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_duplotrainbasemotor.js.html b/docs/devices_duplotrainbasemotor.js.html
index 4819ba5..152e799 100644
--- a/docs/devices_duplotrainbasemotor.js.html
+++ b/docs/devices_duplotrainbasemotor.js.html
@@ -40,7 +40,7 @@
Events
@@ -154,9 +154,9 @@ exports.DuploTrainBaseMotor = DuploTrainBaseMotor;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_duplotrainbasespeaker.js.html b/docs/devices_duplotrainbasespeaker.js.html
index bb8017f..a0f2108 100644
--- a/docs/devices_duplotrainbasespeaker.js.html
+++ b/docs/devices_duplotrainbasespeaker.js.html
@@ -40,7 +40,7 @@
Events
@@ -182,9 +182,9 @@ var Mode;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_duplotrainbasespeedometer.js.html b/docs/devices_duplotrainbasespeedometer.js.html
index 560db88..5c9256f 100644
--- a/docs/devices_duplotrainbasespeedometer.js.html
+++ b/docs/devices_duplotrainbasespeedometer.js.html
@@ -40,7 +40,7 @@
Events
@@ -176,9 +176,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_hubled.js.html b/docs/devices_hubled.js.html
index 6329059..9bc1377 100644
--- a/docs/devices_hubled.js.html
+++ b/docs/devices_hubled.js.html
@@ -40,7 +40,7 @@
Events
@@ -202,9 +202,9 @@ var Mode;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_light.js.html b/docs/devices_light.js.html
index 20e0915..523b056 100644
--- a/docs/devices_light.js.html
+++ b/docs/devices_light.js.html
@@ -40,7 +40,7 @@
Events
@@ -136,7 +136,7 @@ class Light extends device_1.Device {
rampBrightness(fromBrightness, toBrightness, time) {
this.cancelEventTimer();
return new Promise((resolve) => {
- utils_1.calculateRamp(this, fromBrightness, toBrightness, time)
+ (0, utils_1.calculateRamp)(this, fromBrightness, toBrightness, time)
.on("changePower", (power) => {
this.setBrightness(power, false);
})
@@ -188,9 +188,9 @@ exports.Light = Light;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_marioaccelerometer.js.html b/docs/devices_marioaccelerometer.js.html
index 97f0f06..cd8228f 100644
--- a/docs/devices_marioaccelerometer.js.html
+++ b/docs/devices_marioaccelerometer.js.html
@@ -40,7 +40,7 @@
Events
@@ -192,9 +192,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_mariobarcodesensor.js.html b/docs/devices_mariobarcodesensor.js.html
index 7d8ca18..183834c 100644
--- a/docs/devices_mariobarcodesensor.js.html
+++ b/docs/devices_mariobarcodesensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -200,9 +200,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_mariopantssensor.js.html b/docs/devices_mariopantssensor.js.html
index 199ad00..3d6678e 100644
--- a/docs/devices_mariopantssensor.js.html
+++ b/docs/devices_mariopantssensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -176,9 +176,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_mediumlinearmotor.js.html b/docs/devices_mediumlinearmotor.js.html
index f3c9571..c25a4fc 100644
--- a/docs/devices_mediumlinearmotor.js.html
+++ b/docs/devices_mediumlinearmotor.js.html
@@ -40,7 +40,7 @@
Events
@@ -154,9 +154,9 @@ exports.MediumLinearMotor = MediumLinearMotor;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_motionsensor.js.html b/docs/devices_motionsensor.js.html
index 9b9c173..23c38e4 100644
--- a/docs/devices_motionsensor.js.html
+++ b/docs/devices_motionsensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -180,9 +180,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_movehubmediumlinearmotor.js.html b/docs/devices_movehubmediumlinearmotor.js.html
index e833b39..ca6fe25 100644
--- a/docs/devices_movehubmediumlinearmotor.js.html
+++ b/docs/devices_movehubmediumlinearmotor.js.html
@@ -40,7 +40,7 @@
Events
@@ -154,9 +154,9 @@ exports.MoveHubMediumLinearMotor = MoveHubMediumLinearMotor;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_movehubtiltsensor.js.html b/docs/devices_movehubtiltsensor.js.html
index 0e236e9..9736a32 100644
--- a/docs/devices_movehubtiltsensor.js.html
+++ b/docs/devices_movehubtiltsensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -178,9 +178,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_piezobuzzer.js.html b/docs/devices_piezobuzzer.js.html
index 8f1ec42..1976ba6 100644
--- a/docs/devices_piezobuzzer.js.html
+++ b/docs/devices_piezobuzzer.js.html
@@ -40,7 +40,7 @@
Events
@@ -170,9 +170,9 @@ exports.PiezoBuzzer = PiezoBuzzer;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_remotecontrolbutton.js.html b/docs/devices_remotecontrolbutton.js.html
index d385c44..a7c73b5 100644
--- a/docs/devices_remotecontrolbutton.js.html
+++ b/docs/devices_remotecontrolbutton.js.html
@@ -40,7 +40,7 @@
Events
@@ -182,9 +182,9 @@ exports.ButtonState = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_simplemediumlinearmotor.js.html b/docs/devices_simplemediumlinearmotor.js.html
index cf2ea4b..d8a7aba 100644
--- a/docs/devices_simplemediumlinearmotor.js.html
+++ b/docs/devices_simplemediumlinearmotor.js.html
@@ -40,7 +40,7 @@
Events
@@ -154,9 +154,9 @@ exports.SimpleMediumLinearMotor = SimpleMediumLinearMotor;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_tachomotor.js.html b/docs/devices_tachomotor.js.html
index 5a901c5..4ad0be5 100644
--- a/docs/devices_tachomotor.js.html
+++ b/docs/devices_tachomotor.js.html
@@ -40,7 +40,7 @@
Events
@@ -187,32 +187,31 @@ class TachoMotor extends basicmotor_1.BasicMotor {
}
this.cancelEventTimer();
return new Promise((resolve) => {
- this._busy = true;
if (speed === undefined || speed === null) {
speed = 100;
}
let message;
if (time !== undefined) {
if (speed instanceof Array) {
- message = Buffer.from([0x81, this.portId, 0x11, 0x0a, 0x00, 0x00, utils_1.mapSpeed(speed[0]), utils_1.mapSpeed(speed[1]), this._maxPower, this._brakeStyle, this.useProfile()]);
+ message = Buffer.from([0x81, this.portId, 0x11, 0x0a, 0x00, 0x00, (0, utils_1.mapSpeed)(speed[0]), (0, utils_1.mapSpeed)(speed[1]), this._maxPower, this._brakeStyle, this.useProfile()]);
}
else {
- message = Buffer.from([0x81, this.portId, 0x11, 0x09, 0x00, 0x00, utils_1.mapSpeed(speed), this._maxPower, this._brakeStyle, this.useProfile()]);
+ message = Buffer.from([0x81, this.portId, 0x11, 0x09, 0x00, 0x00, (0, utils_1.mapSpeed)(speed), this._maxPower, this._brakeStyle, this.useProfile()]);
}
message.writeUInt16LE(time, 4);
}
else {
if (speed instanceof Array) {
- message = Buffer.from([0x81, this.portId, 0x11, 0x08, utils_1.mapSpeed(speed[0]), utils_1.mapSpeed(speed[1]), this._maxPower, this.useProfile()]);
+ message = Buffer.from([0x81, this.portId, 0x11, 0x08, (0, utils_1.mapSpeed)(speed[0]), (0, utils_1.mapSpeed)(speed[1]), this._maxPower, this.useProfile()]);
}
else {
- message = Buffer.from([0x81, this.portId, 0x11, 0x07, utils_1.mapSpeed(speed), this._maxPower, this.useProfile()]);
+ message = Buffer.from([0x81, this.portId, 0x11, 0x07, (0, utils_1.mapSpeed)(speed), this._maxPower, this.useProfile()]);
}
}
this.send(message);
- this._finished = () => {
+ this._finishedCallbacks.push(() => {
return resolve();
- };
+ });
});
}
/**
@@ -231,22 +230,21 @@ class TachoMotor extends basicmotor_1.BasicMotor {
}
this.cancelEventTimer();
return new Promise((resolve) => {
- this._busy = true;
if (speed === undefined || speed === null) {
speed = 100;
}
let message;
if (speed instanceof Array) {
- message = Buffer.from([0x81, this.portId, 0x11, 0x0c, 0x00, 0x00, 0x00, 0x00, utils_1.mapSpeed(speed[0]), utils_1.mapSpeed(speed[1]), this._maxPower, this._brakeStyle, this.useProfile()]);
+ message = Buffer.from([0x81, this.portId, 0x11, 0x0c, 0x00, 0x00, 0x00, 0x00, (0, utils_1.mapSpeed)(speed[0]), (0, utils_1.mapSpeed)(speed[1]), this._maxPower, this._brakeStyle, this.useProfile()]);
}
else {
- message = Buffer.from([0x81, this.portId, 0x11, 0x0b, 0x00, 0x00, 0x00, 0x00, utils_1.mapSpeed(speed), this._maxPower, this._brakeStyle, this.useProfile()]);
+ message = Buffer.from([0x81, this.portId, 0x11, 0x0b, 0x00, 0x00, 0x00, 0x00, (0, utils_1.mapSpeed)(speed), this._maxPower, this._brakeStyle, this.useProfile()]);
}
message.writeUInt32LE(degrees, 4);
this.send(message);
- this._finished = () => {
+ this._finishedCallbacks.push(() => {
return resolve();
- };
+ });
});
}
useProfile() {
@@ -311,9 +309,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_techniccolorsensor.js.html b/docs/devices_techniccolorsensor.js.html
index 023413c..6dd7488 100644
--- a/docs/devices_techniccolorsensor.js.html
+++ b/docs/devices_techniccolorsensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -101,6 +101,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
exports.ModeMap = exports.Mode = exports.TechnicColorSensor = void 0;
const device_1 = require("./device");
const Consts = __importStar(require("../consts"));
+const utils_1 = require("../utils");
/**
* @class TechnicColorSensor
* @extends Device
@@ -114,7 +115,7 @@ class TechnicColorSensor extends device_1.Device {
switch (mode) {
case Mode.COLOR:
if (message[4] <= 10) {
- const color = message[4];
+ const color = (0, utils_1.parseColor)(message[4]);
/**
* Emits when a color sensor is activated.
* @event TechnicColorSensor#color
@@ -213,9 +214,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_technicdistancesensor.js.html b/docs/devices_technicdistancesensor.js.html
index fe43274..653013d 100644
--- a/docs/devices_technicdistancesensor.js.html
+++ b/docs/devices_technicdistancesensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -200,9 +200,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_technicforcesensor.js.html b/docs/devices_technicforcesensor.js.html
index 2063d99..ec8fe02 100644
--- a/docs/devices_technicforcesensor.js.html
+++ b/docs/devices_technicforcesensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -200,9 +200,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_techniclargeangularmotor.js.html b/docs/devices_techniclargeangularmotor.js.html
index 382920e..159d4a7 100644
--- a/docs/devices_techniclargeangularmotor.js.html
+++ b/docs/devices_techniclargeangularmotor.js.html
@@ -40,7 +40,7 @@
Events
@@ -154,9 +154,9 @@ exports.TechnicLargeAngularMotor = TechnicLargeAngularMotor;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_techniclargelinearmotor.js.html b/docs/devices_techniclargelinearmotor.js.html
index 7fd8256..18022df 100644
--- a/docs/devices_techniclargelinearmotor.js.html
+++ b/docs/devices_techniclargelinearmotor.js.html
@@ -40,7 +40,7 @@
Events
@@ -154,9 +154,9 @@ exports.TechnicLargeLinearMotor = TechnicLargeLinearMotor;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_technicmediumangularmotor.js.html b/docs/devices_technicmediumangularmotor.js.html
index c51a0a9..b5eb1fc 100644
--- a/docs/devices_technicmediumangularmotor.js.html
+++ b/docs/devices_technicmediumangularmotor.js.html
@@ -40,7 +40,7 @@
Events
@@ -154,9 +154,9 @@ exports.TechnicMediumAngularMotor = TechnicMediumAngularMotor;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_technicmediumhubaccelerometersensor.js.html b/docs/devices_technicmediumhubaccelerometersensor.js.html
index bd1f192..359c2fe 100644
--- a/docs/devices_technicmediumhubaccelerometersensor.js.html
+++ b/docs/devices_technicmediumhubaccelerometersensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -180,9 +180,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_technicmediumhubgyrosensor.js.html b/docs/devices_technicmediumhubgyrosensor.js.html
index e160d41..47917b8 100644
--- a/docs/devices_technicmediumhubgyrosensor.js.html
+++ b/docs/devices_technicmediumhubgyrosensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -180,9 +180,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_technicmediumhubtiltsensor.js.html b/docs/devices_technicmediumhubtiltsensor.js.html
index 4d4b2c5..d76d7b1 100644
--- a/docs/devices_technicmediumhubtiltsensor.js.html
+++ b/docs/devices_technicmediumhubtiltsensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -180,9 +180,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_technicxlargelinearmotor.js.html b/docs/devices_technicxlargelinearmotor.js.html
index c01ac3c..22f429c 100644
--- a/docs/devices_technicxlargelinearmotor.js.html
+++ b/docs/devices_technicxlargelinearmotor.js.html
@@ -40,7 +40,7 @@
Events
@@ -154,9 +154,9 @@ exports.TechnicXLargeLinearMotor = TechnicXLargeLinearMotor;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_tiltsensor.js.html b/docs/devices_tiltsensor.js.html
index e11cca1..67810a9 100644
--- a/docs/devices_tiltsensor.js.html
+++ b/docs/devices_tiltsensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -178,9 +178,9 @@ exports.ModeMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_trainmotor.js.html b/docs/devices_trainmotor.js.html
index 1fc441a..d1d6f61 100644
--- a/docs/devices_trainmotor.js.html
+++ b/docs/devices_trainmotor.js.html
@@ -40,7 +40,7 @@
Events
@@ -154,9 +154,9 @@ exports.TrainMotor = TrainMotor;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/devices_voltagesensor.js.html b/docs/devices_voltagesensor.js.html
index 9889daf..d49d2fe 100644
--- a/docs/devices_voltagesensor.js.html
+++ b/docs/devices_voltagesensor.js.html
@@ -40,7 +40,7 @@
Events
@@ -201,9 +201,9 @@ const MaxVoltageRaw = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/hubs_basehub.js.html b/docs/hubs_basehub.js.html
index b1c426f..18dcccd 100644
--- a/docs/hubs_basehub.js.html
+++ b/docs/hubs_basehub.js.html
@@ -40,7 +40,7 @@
Events
@@ -457,6 +457,8 @@ class BaseHub extends events_1.EventEmitter {
[Consts.DeviceType.MARIO_ACCELEROMETER]: marioaccelerometer_1.MarioAccelerometer,
[Consts.DeviceType.MARIO_BARCODE_SENSOR]: mariobarcodesensor_1.MarioBarcodeSensor,
[Consts.DeviceType.MARIO_PANTS_SENSOR]: mariopantssensor_1.MarioPantsSensor,
+ [Consts.DeviceType.TECHNIC_MEDIUM_ANGULAR_MOTOR_GREY]: technicmediumangularmotor_1.TechnicMediumAngularMotor,
+ [Consts.DeviceType.TECHNIC_LARGE_ANGULAR_MOTOR_GREY]: techniclargeangularmotor_1.TechnicLargeAngularMotor,
};
constructor = deviceConstructors[deviceType];
if (constructor) {
@@ -514,9 +516,9 @@ exports.BaseHub = BaseHub;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/hubs_duplotrainbase.js.html b/docs/hubs_duplotrainbase.js.html
index b93f2c0..ac13a93 100644
--- a/docs/hubs_duplotrainbase.js.html
+++ b/docs/hubs_duplotrainbase.js.html
@@ -40,7 +40,7 @@
Events
@@ -177,9 +177,9 @@ exports.PortMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/hubs_hub.js.html b/docs/hubs_hub.js.html
index 735a8bd..06e46a3 100644
--- a/docs/hubs_hub.js.html
+++ b/docs/hubs_hub.js.html
@@ -40,7 +40,7 @@
Events
@@ -133,7 +133,7 @@ class Hub extends lpf2hub_1.LPF2Hub {
debug("Connect completed");
}
_checkFirmware(version) {
- if (compare_versions_1.default("1.1.00.0004", version) === 1) {
+ if ((0, compare_versions_1.default)("1.1.00.0004", version) === 1) {
throw new Error(`Your Powered Up Hub's (${this.name}) firmware is out of date and unsupported by this library. Please update it via the official Powered Up app.`);
}
}
@@ -189,9 +189,9 @@ exports.PortMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/hubs_lpf2hub.js.html b/docs/hubs_lpf2hub.js.html
index 88e3ae9..ecb49f4 100644
--- a/docs/hubs_lpf2hub.js.html
+++ b/docs/hubs_lpf2hub.js.html
@@ -40,7 +40,7 @@
Events
@@ -273,11 +273,11 @@ class LPF2Hub extends basehub_1.BaseHub {
}
}
else if (message[3] === Consts.HubPropertyPayload.FW_VERSION) {
- this._firmwareVersion = utils_1.decodeVersion(message.readInt32LE(5));
+ this._firmwareVersion = (0, utils_1.decodeVersion)(message.readInt32LE(5));
this._checkFirmware(this._firmwareVersion);
}
else if (message[3] === Consts.HubPropertyPayload.HW_VERSION) {
- this._hardwareVersion = utils_1.decodeVersion(message.readInt32LE(5));
+ this._hardwareVersion = (0, utils_1.decodeVersion)(message.readInt32LE(5));
}
else if (message[3] === Consts.HubPropertyPayload.RSSI) {
const rssi = message.readInt8(5);
@@ -287,7 +287,7 @@ class LPF2Hub extends basehub_1.BaseHub {
}
}
else if (message[3] === Consts.HubPropertyPayload.PRIMARY_MAC_ADDRESS) {
- this._primaryMACAddress = utils_1.decodeMACAddress(message.slice(5));
+ this._primaryMACAddress = (0, utils_1.decodeMACAddress)(message.slice(5));
}
else if (message[3] === Consts.HubPropertyPayload.BATTERY_VOLTAGE) {
const batteryLevel = message[5];
@@ -301,19 +301,19 @@ class LPF2Hub extends basehub_1.BaseHub {
const portId = message[3];
const event = message[4];
const deviceType = event ? message.readUInt16LE(5) : 0;
- if (event === Consts.AlertPayload.ATTACHED_IO) {
+ if (event === Consts.Event.ATTACHED_IO) {
if (modeInfoDebug.enabled) {
const deviceTypeName = Consts.DeviceTypeNames[message[5]] || "Unknown";
- modeInfoDebug(`Port ${utils_1.toHex(portId)}, type ${utils_1.toHex(deviceType, 4)} (${deviceTypeName})`);
- const hwVersion = utils_1.decodeVersion(message.readInt32LE(7));
- const swVersion = utils_1.decodeVersion(message.readInt32LE(11));
- modeInfoDebug(`Port ${utils_1.toHex(portId)}, hardware version ${hwVersion}, software version ${swVersion}`);
+ modeInfoDebug(`Port ${(0, utils_1.toHex)(portId)}, type ${(0, utils_1.toHex)(deviceType, 4)} (${deviceTypeName})`);
+ const hwVersion = (0, utils_1.decodeVersion)(message.readInt32LE(7));
+ const swVersion = (0, utils_1.decodeVersion)(message.readInt32LE(11));
+ modeInfoDebug(`Port ${(0, utils_1.toHex)(portId)}, hardware version ${hwVersion}, software version ${swVersion}`);
await this._sendPortInformationRequest(portId);
}
const device = this._createDevice(deviceType, portId);
this._attachDevice(device);
}
- else if (event === Consts.AlertPayload.DETACHED_IO) {
+ else if (event === Consts.Event.DETACHED_IO) {
const device = this._getDeviceByPortId(portId);
if (device) {
this._detachDevice(device);
@@ -326,7 +326,7 @@ class LPF2Hub extends basehub_1.BaseHub {
}
}
}
- else if (event === Consts.AlertPayload.ATTACHED_VIRTUAL_IO) {
+ else if (event === Consts.Event.ATTACHED_VIRTUAL_IO) {
const firstPortName = this.getPortNameForPortId(message[7]);
const secondPortName = this.getPortNameForPortId(message[8]);
// @ts-ignore NK These should never be undefined
@@ -349,13 +349,13 @@ class LPF2Hub extends basehub_1.BaseHub {
for (let i = 5; i < message.length; i += 2) {
modeCombinationMasks.push(message.readUInt16LE(i));
}
- modeInfoDebug(`Port ${utils_1.toHex(port)}, mode combinations [${modeCombinationMasks.map((c) => utils_1.toBin(c, 0)).join(", ")}]`);
+ modeInfoDebug(`Port ${(0, utils_1.toHex)(port)}, mode combinations [${modeCombinationMasks.map((c) => (0, utils_1.toBin)(c, 0)).join(", ")}]`);
return;
}
const count = message[6];
- const input = utils_1.toBin(message.readUInt16LE(7), count);
- const output = utils_1.toBin(message.readUInt16LE(9), count);
- modeInfoDebug(`Port ${utils_1.toHex(port)}, total modes ${count}, input modes ${input}, output modes ${output}`);
+ const input = (0, utils_1.toBin)(message.readUInt16LE(7), count);
+ const output = (0, utils_1.toBin)(message.readUInt16LE(9), count);
+ modeInfoDebug(`Port ${(0, utils_1.toHex)(port)}, total modes ${count}, input modes ${input}, output modes ${output}`);
for (let i = 0; i < count; i++) {
await this._sendModeInformationRequest(port, i, Consts.ModeInformationType.NAME);
await this._sendModeInformationRequest(port, i, Consts.ModeInformationType.RAW);
@@ -369,7 +369,7 @@ class LPF2Hub extends basehub_1.BaseHub {
return this.send(Buffer.from([0x22, port, mode, type]), Consts.BLECharacteristic.LPF2_ALL);
}
_parseModeInformationResponse(message) {
- const port = utils_1.toHex(message[3]);
+ const port = (0, utils_1.toHex)(message[3]);
const mode = message[4];
const type = message[5];
switch (type) {
@@ -400,10 +400,7 @@ class LPF2Hub extends basehub_1.BaseHub {
const portId = message[3];
const device = this._getDeviceByPortId(portId);
if (device) {
- const finished = (message[4] === 0x0a);
- if (finished) {
- device.finish();
- }
+ device.finish(message[4]);
}
}
_parseSensorMessage(message) {
@@ -458,9 +455,9 @@ exports.LPF2Hub = LPF2Hub;
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/hubs_mario.js.html b/docs/hubs_mario.js.html
index f40f559..db7ffcf 100644
--- a/docs/hubs_mario.js.html
+++ b/docs/hubs_mario.js.html
@@ -40,7 +40,7 @@
Events
@@ -119,7 +119,7 @@ class Mario extends lpf2hub_1.LPF2Hub {
peripheral.advertisement.manufacturerData[3] === Consts.BLEManufacturerData.MARIO_ID);
}
constructor(device) {
- super(device, exports.PortMap, Consts.HubType.MOVE_HUB);
+ super(device, exports.PortMap, Consts.HubType.MARIO);
debug("Discovered Mario");
}
async connect() {
@@ -173,9 +173,9 @@ exports.PortMap = {};
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/hubs_movehub.js.html b/docs/hubs_movehub.js.html
index 3f535a7..70a27ee 100644
--- a/docs/hubs_movehub.js.html
+++ b/docs/hubs_movehub.js.html
@@ -40,7 +40,7 @@
Events
@@ -132,7 +132,7 @@ class MoveHub extends lpf2hub_1.LPF2Hub {
debug("Connect completed");
}
_checkFirmware(version) {
- if (compare_versions_1.default("2.0.00.0017", version) === 1) {
+ if ((0, compare_versions_1.default)("2.0.00.0017", version) === 1) {
throw new Error(`Your Move Hub's (${this.name}) firmware is out of date and unsupported by this library. Please update it via the official Powered Up app.`);
}
}
@@ -191,9 +191,9 @@ exports.PortMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/hubs_remotecontrol.js.html b/docs/hubs_remotecontrol.js.html
index a8044b8..dd49fee 100644
--- a/docs/hubs_remotecontrol.js.html
+++ b/docs/hubs_remotecontrol.js.html
@@ -40,7 +40,7 @@
Events
@@ -179,9 +179,9 @@ exports.PortMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/hubs_technicmediumhub.js.html b/docs/hubs_technicmediumhub.js.html
index b6a5e5c..ba9b81d 100644
--- a/docs/hubs_technicmediumhub.js.html
+++ b/docs/hubs_technicmediumhub.js.html
@@ -40,7 +40,7 @@
Events
@@ -184,9 +184,9 @@ exports.PortMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/hubs_wedo2smarthub.js.html b/docs/hubs_wedo2smarthub.js.html
index 21dfd66..560c8db 100644
--- a/docs/hubs_wedo2smarthub.js.html
+++ b/docs/hubs_wedo2smarthub.js.html
@@ -40,7 +40,7 @@
Events
@@ -330,9 +330,9 @@ exports.PortMap = {
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/index.html b/docs/index.html
index 81fd51d..f34b44d 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -40,7 +40,7 @@
Events
@@ -428,9 +428,9 @@ console.log("Scanning for Hubs...");
- Documentation generated by JSDoc 3.6.6
+ Documentation generated by JSDoc 3.6.7
- on Tue Dec 29th 2020
+ on Sun Aug 29th 2021
using the DocStrap template.
diff --git a/docs/quicksearch.html b/docs/quicksearch.html
index 1a04811..41a2162 100644
--- a/docs/quicksearch.html
+++ b/docs/quicksearch.html
@@ -7,7 +7,7 @@