diff --git a/README.md b/README.md
index 95ccc52..f642368 100644
--- a/README.md
+++ b/README.md
@@ -42,9 +42,9 @@ While most Powered Up components and Hubs are compatible with each other, there
| Control+ XLarge Motor | 22172 | Motor/Sensor | *Partial* | No | Yes | Yes | 42099
42100 |
| SPIKE Prime Medium Motor | 45678 | Motor/Sensor | *Partial* | Yes | Yes | Yes | 45678 |
| SPIKE Prime Large Motor | 45678 | Motor/Sensor | *Partial* | Yes | Yes | Yes | 45678 |
-| SPIKE Prime Color Sensor | 45678 | Motor/Sensor | *Partial* | Yes | Yes | Yes | 45678 |
-| SPIKE Prime Distance Sensor | 45678 | Motor/Sensor | *Partial* | Yes | Yes | Yes | 45678 |
-| SPIKE Prime Force Sensor | 45678 | Motor/Sensor | *Partial* | Yes | Yes | Yes | 45678 |
+| SPIKE Prime Color Sensor | 45678 | Sensor | No | Yes | Yes | Yes | 45678 |
+| SPIKE Prime Distance Sensor | 45678 | Sensor | No | Yes | Yes | Yes | 45678 |
+| SPIKE Prime Force Sensor | 45678 | Sensor | No | Yes | Yes | Yes | 45678 |
In addition, the Hubs themselves have certain built-in features which this library exposes.
@@ -60,11 +60,9 @@ In addition, the Hubs themselves have certain built-in features which this libra
### Known Issues and Limitations
-* The Boost Color and Distance sensor only works in color mode with the WeDo 2.0 Smart Hub.
+* The WeDo 2.0 Smart Hub uses an older firmware which is no longer being updated. As a result, only certain motors and sensors work with it. See the table above.
-* When used with the WeDo 2.0 Smart Hub, the Boost Tacho Motor and Control+ Motors do not support rotating the motor by angle.
-
-* When used with the Boost Move Hub, the Control+ Motors do not currently accept commands.
+* When used with the Boost Move Hub, the Control+ Motors do not currently accept commands (This is a known but which requires a firmware update from Lego to fix)
* The SPIKE Prime Hub does not use Bluetooth Low Energy, so is not supported via this library. It is recommended you use MicroPython and Bluetooth Classic to develop for this Hub.
@@ -81,22 +79,22 @@ const poweredUP = new PoweredUP.PoweredUP();
poweredUP.on("discover", async (hub) => { // Wait to discover a Hub
console.log(`Discovered ${hub.name}!`);
await hub.connect(); // Connect to the Hub
- const motorA = hub.waitForDeviceAtPort("A"); // Make sure a motor is plugged into port A
- const motorB = hub.waitForDeviceAtPort("B"); // Make sure a motor is plugged into port B
+ const motorA = await hub.waitForDeviceAtPort("A"); // Make sure a motor is plugged into port A
+ const motorB = await hub.waitForDeviceAtPort("B"); // Make sure a motor is plugged into port B
console.log("Connected");
while (true) { // Repeat indefinitely
- console.log("Running motor B at speed 75");
- motorB.setPower("B", 75); // Start a motor attached to port B to run a 3/4 speed (75) indefinitely
+ console.log("Running motor B at speed 50");
+ motorB.setPower(50); // Start a motor attached to port B to run a 3/4 speed (75) indefinitely
console.log("Running motor A at speed 100 for 2 seconds");
- motorA.setPower("A", 100); // Run a motor attached to port A for 2 seconds at maximum speed (100) then stop
+ motorA.setPower(100); // Run a motor attached to port A for 2 seconds at maximum speed (100) then stop
await hub.sleep(2000);
- motorA.setPower("A", 0);
+ motorA.brake();
await hub.sleep(1000); // Do nothing for 1 second
- console.log("Running motor A at speed -50 for 1 second");
- motorA.setPower("A", -50); // Run a motor attached to port A for 1 second at 1/2 speed in reverse (-50) then stop
- hub.sleep(1000);
- motorA.setPower("A", 0);
+ console.log("Running motor A at speed -30 for 1 second");
+ motorA.setPower(-30); // Run a motor attached to port A for 2 seconds at 1/2 speed in reverse (-50) then stop
+ await hub.sleep(2000);
+ motorA.brake();
await hub.sleep(1000); // Do nothing for 1 second
}
});
diff --git a/docs/AbsoluteMotor.html b/docs/AbsoluteMotor.html
index b908a8e..585fbbb 100644
--- a/docs/AbsoluteMotor.html
+++ b/docs/AbsoluteMotor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1319,7 +1319,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/BaseHub.html b/docs/BaseHub.html
index 6edd204..5ee5e51 100644
--- a/docs/BaseHub.html
+++ b/docs/BaseHub.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1325,7 +1325,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/BasicMotor.html b/docs/BasicMotor.html
index 9757e33..dc5f79f 100644
--- a/docs/BasicMotor.html
+++ b/docs/BasicMotor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1622,7 +1622,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/ColorDistanceSensor.html b/docs/ColorDistanceSensor.html
index 30697a5..bc8a527 100644
--- a/docs/ColorDistanceSensor.html
+++ b/docs/ColorDistanceSensor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1482,7 +1482,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/CurrentSensor.html b/docs/CurrentSensor.html
index f34476a..19f5ba4 100644
--- a/docs/CurrentSensor.html
+++ b/docs/CurrentSensor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1170,7 +1170,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/Device.html b/docs/Device.html
index 015810e..8bc3bf7 100644
--- a/docs/Device.html
+++ b/docs/Device.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -968,7 +968,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html
index c00f748..156f6ac 100644
--- a/docs/DuploTrainBase.html
+++ b/docs/DuploTrainBase.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -2079,7 +2079,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/DuploTrainBaseColorSensor.html b/docs/DuploTrainBaseColorSensor.html
index 9cdafe9..3d5d186 100644
--- a/docs/DuploTrainBaseColorSensor.html
+++ b/docs/DuploTrainBaseColorSensor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1170,7 +1170,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/DuploTrainBaseMotor.html b/docs/DuploTrainBaseMotor.html
index a3b6dba..38ab1b4 100644
--- a/docs/DuploTrainBaseMotor.html
+++ b/docs/DuploTrainBaseMotor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1658,7 +1658,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/DuploTrainBaseSpeaker.html b/docs/DuploTrainBaseSpeaker.html
index 618b18d..6500dfb 100644
--- a/docs/DuploTrainBaseSpeaker.html
+++ b/docs/DuploTrainBaseSpeaker.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1188,7 +1188,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/DuploTraniBaseSpeedometer.html b/docs/DuploTraniBaseSpeedometer.html
index f2a4418..bd82251 100644
--- a/docs/DuploTraniBaseSpeedometer.html
+++ b/docs/DuploTraniBaseSpeedometer.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1022,7 +1022,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/Hub.html b/docs/Hub.html
index e9f93d3..c81f7f3 100644
--- a/docs/Hub.html
+++ b/docs/Hub.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -3758,7 +3758,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/HubLED.html b/docs/HubLED.html
index 5c68025..cf2b0eb 100644
--- a/docs/HubLED.html
+++ b/docs/HubLED.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1398,7 +1398,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html
index 0410915..ae7e2bc 100644
--- a/docs/LPF2Hub.html
+++ b/docs/LPF2Hub.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -2037,7 +2037,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/Light.html b/docs/Light.html
index 5314026..b3121d3 100644
--- a/docs/Light.html
+++ b/docs/Light.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1398,7 +1398,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/MediumLinearMotor.html b/docs/MediumLinearMotor.html
index 4e32bc7..d3cb08d 100644
--- a/docs/MediumLinearMotor.html
+++ b/docs/MediumLinearMotor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -957,7 +957,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/MotionSensor.html b/docs/MotionSensor.html
index 7601a20..c22e3f5 100644
--- a/docs/MotionSensor.html
+++ b/docs/MotionSensor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1170,7 +1170,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/MoveHub.html b/docs/MoveHub.html
index a454da0..3093d27 100644
--- a/docs/MoveHub.html
+++ b/docs/MoveHub.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -2124,7 +2124,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/MoveHubMediumLinearMotor.html b/docs/MoveHubMediumLinearMotor.html
index 295c052..c2e45f3 100644
--- a/docs/MoveHubMediumLinearMotor.html
+++ b/docs/MoveHubMediumLinearMotor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -957,7 +957,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/MoveHubTiltSensor.html b/docs/MoveHubTiltSensor.html
index c73b163..e8f7d2c 100644
--- a/docs/MoveHubTiltSensor.html
+++ b/docs/MoveHubTiltSensor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1194,7 +1194,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/PiezoBuzzer.html b/docs/PiezoBuzzer.html
index 4e69e3d..141038a 100644
--- a/docs/PiezoBuzzer.html
+++ b/docs/PiezoBuzzer.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1212,7 +1212,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/RemoteControl.html b/docs/RemoteControl.html
index 1872331..7b0a26f 100644
--- a/docs/RemoteControl.html
+++ b/docs/RemoteControl.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -2124,7 +2124,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/RemoteControlButton.html b/docs/RemoteControlButton.html
index 0e540b1..7d92d66 100644
--- a/docs/RemoteControlButton.html
+++ b/docs/RemoteControlButton.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1170,7 +1170,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/SimpleMediumLinearMotor.html b/docs/SimpleMediumLinearMotor.html
index ddd2005..5e4cd27 100644
--- a/docs/SimpleMediumLinearMotor.html
+++ b/docs/SimpleMediumLinearMotor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1022,7 +1022,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TachoMotor.html b/docs/TachoMotor.html
index c4301ef..5d619bc 100644
--- a/docs/TachoMotor.html
+++ b/docs/TachoMotor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -2325,7 +2325,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TechnicColorSensor.html b/docs/TechnicColorSensor.html
index fff63e9..c28c50a 100644
--- a/docs/TechnicColorSensor.html
+++ b/docs/TechnicColorSensor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1458,7 +1458,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TechnicDistanceSensor.html b/docs/TechnicDistanceSensor.html
index 611d3ca..0a186d2 100644
--- a/docs/TechnicDistanceSensor.html
+++ b/docs/TechnicDistanceSensor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1552,7 +1552,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TechnicForceSensor.html b/docs/TechnicForceSensor.html
index 18b6c57..acb9a9d 100644
--- a/docs/TechnicForceSensor.html
+++ b/docs/TechnicForceSensor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1458,7 +1458,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TechnicLargeAngularMotor.html b/docs/TechnicLargeAngularMotor.html
index 8e6d4e8..630b0bf 100644
--- a/docs/TechnicLargeAngularMotor.html
+++ b/docs/TechnicLargeAngularMotor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1337,7 +1337,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TechnicLargeLinearMotor.html b/docs/TechnicLargeLinearMotor.html
index da90676..d4eb3c8 100644
--- a/docs/TechnicLargeLinearMotor.html
+++ b/docs/TechnicLargeLinearMotor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1337,7 +1337,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TechnicMediumAngularMotor.html b/docs/TechnicMediumAngularMotor.html
index 103dd32..7b9914d 100644
--- a/docs/TechnicMediumAngularMotor.html
+++ b/docs/TechnicMediumAngularMotor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1337,7 +1337,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TechnicMediumHub.html b/docs/TechnicMediumHub.html
index 777a1cb..487157e 100644
--- a/docs/TechnicMediumHub.html
+++ b/docs/TechnicMediumHub.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -2124,7 +2124,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TechnicMediumHubAccelerometerSensor.html b/docs/TechnicMediumHubAccelerometerSensor.html
index 8fcb059..962e82c 100644
--- a/docs/TechnicMediumHubAccelerometerSensor.html
+++ b/docs/TechnicMediumHubAccelerometerSensor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1218,7 +1218,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TechnicMediumHubGyroSensor.html b/docs/TechnicMediumHubGyroSensor.html
index dce0108..7c5b15e 100644
--- a/docs/TechnicMediumHubGyroSensor.html
+++ b/docs/TechnicMediumHubGyroSensor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1218,7 +1218,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TechnicMediumHubTiltSensor.html b/docs/TechnicMediumHubTiltSensor.html
index 507708f..eb09d55 100644
--- a/docs/TechnicMediumHubTiltSensor.html
+++ b/docs/TechnicMediumHubTiltSensor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1218,7 +1218,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TechnicXLargeLinearMotor.html b/docs/TechnicXLargeLinearMotor.html
index 55636fb..66c7e61 100644
--- a/docs/TechnicXLargeLinearMotor.html
+++ b/docs/TechnicXLargeLinearMotor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1337,7 +1337,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TiltSensor.html b/docs/TiltSensor.html
index f079ef9..c4fc233 100644
--- a/docs/TiltSensor.html
+++ b/docs/TiltSensor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1194,7 +1194,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/TrainMotor.html b/docs/TrainMotor.html
index a3c62cc..f227868 100644
--- a/docs/TrainMotor.html
+++ b/docs/TrainMotor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1658,7 +1658,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/VoltageSensor.html b/docs/VoltageSensor.html
index 33779a0..43400d6 100644
--- a/docs/VoltageSensor.html
+++ b/docs/VoltageSensor.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1170,7 +1170,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html
index b4f195f..41eca9a 100644
--- a/docs/WeDo2SmartHub.html
+++ b/docs/WeDo2SmartHub.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -1854,7 +1854,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/classes.list.html b/docs/classes.list.html
index d5c59b7..23c9cdd 100644
--- a/docs/classes.list.html
+++ b/docs/classes.list.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -151,15 +151,9 @@
BasicMotor
- BoostMoveHub
-
-
ColorDistanceSensor
- ControlPlusHub
-
-
CurrentSensor
@@ -211,12 +205,6 @@
PiezoBuzzer
- PUPHub
-
-
- PUPRemote
-
-
RemoteControl
@@ -584,568 +572,6 @@
-
-
-
-
-
-
- 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:
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1602,568 +1028,6 @@
-
-
-
-
-
-
- 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:
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -4253,1140 +3117,6 @@
-
-
-
-
-
-
- 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:
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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:
- -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -9495,7 +7225,7 @@
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_absolutemotor.js.html b/docs/devices_absolutemotor.js.html
index e877cba..246784e 100644
--- a/docs/devices_absolutemotor.js.html
+++ b/docs/devices_absolutemotor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -207,7 +207,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_basicmotor.js.html b/docs/devices_basicmotor.js.html
index a3c3a8e..05e79c8 100644
--- a/docs/devices_basicmotor.js.html
+++ b/docs/devices_basicmotor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -195,7 +195,7 @@ exports.BasicMotor = BasicMotor;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_colordistancesensor.js.html b/docs/devices_colordistancesensor.js.html
index a78c7ff..d51de17 100644
--- a/docs/devices_colordistancesensor.js.html
+++ b/docs/devices_colordistancesensor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -208,7 +208,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_currentsensor.js.html b/docs/devices_currentsensor.js.html
index bae4660..e7753b5 100644
--- a/docs/devices_currentsensor.js.html
+++ b/docs/devices_currentsensor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -186,7 +186,7 @@ const MaxCurrentRaw = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_device.js.html b/docs/devices_device.js.html
index cba74fb..f5a1015 100644
--- a/docs/devices_device.js.html
+++ b/docs/devices_device.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -285,7 +285,7 @@ exports.Device = Device;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_duplotrainbasecolorsensor.js.html b/docs/devices_duplotrainbasecolorsensor.js.html
index 44591a8..78b82c0 100644
--- a/docs/devices_duplotrainbasecolorsensor.js.html
+++ b/docs/devices_duplotrainbasecolorsensor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -167,7 +167,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_duplotrainbasemotor.js.html b/docs/devices_duplotrainbasemotor.js.html
index 50d36a5..11821e3 100644
--- a/docs/devices_duplotrainbasemotor.js.html
+++ b/docs/devices_duplotrainbasemotor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -143,7 +143,7 @@ exports.DuploTrainBaseMotor = DuploTrainBaseMotor;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_duplotrainbasespeaker.js.html b/docs/devices_duplotrainbasespeaker.js.html
index 3c631ee..376cf98 100644
--- a/docs/devices_duplotrainbasespeaker.js.html
+++ b/docs/devices_duplotrainbasespeaker.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -160,7 +160,7 @@ var Mode;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_duplotrainbasespeedometer.js.html b/docs/devices_duplotrainbasespeedometer.js.html
index 37908aa..38531fa 100644
--- a/docs/devices_duplotrainbasespeedometer.js.html
+++ b/docs/devices_duplotrainbasespeedometer.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -165,7 +165,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_hubled.js.html b/docs/devices_hubled.js.html
index f98b5c5..2976dee 100644
--- a/docs/devices_hubled.js.html
+++ b/docs/devices_hubled.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -191,7 +191,7 @@ var Mode;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_light.js.html b/docs/devices_light.js.html
index 1968a20..f001ff6 100644
--- a/docs/devices_light.js.html
+++ b/docs/devices_light.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -177,7 +177,7 @@ exports.Light = Light;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_mediumlinearmotor.js.html b/docs/devices_mediumlinearmotor.js.html
index da4432b..ea46348 100644
--- a/docs/devices_mediumlinearmotor.js.html
+++ b/docs/devices_mediumlinearmotor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -143,7 +143,7 @@ exports.MediumLinearMotor = MediumLinearMotor;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_motionsensor.js.html b/docs/devices_motionsensor.js.html
index 6b139e6..694e8c1 100644
--- a/docs/devices_motionsensor.js.html
+++ b/docs/devices_motionsensor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -169,7 +169,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_movehubmediumlinearmotor.js.html b/docs/devices_movehubmediumlinearmotor.js.html
index 98a5565..237b031 100644
--- a/docs/devices_movehubmediumlinearmotor.js.html
+++ b/docs/devices_movehubmediumlinearmotor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -143,7 +143,7 @@ exports.MoveHubMediumLinearMotor = MoveHubMediumLinearMotor;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_movehubtiltsensor.js.html b/docs/devices_movehubtiltsensor.js.html
index 0ee58b7..f70e218 100644
--- a/docs/devices_movehubtiltsensor.js.html
+++ b/docs/devices_movehubtiltsensor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -167,7 +167,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_piezobuzzer.js.html b/docs/devices_piezobuzzer.js.html
index 846d4d5..1e22e3f 100644
--- a/docs/devices_piezobuzzer.js.html
+++ b/docs/devices_piezobuzzer.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -159,7 +159,7 @@ exports.PiezoBuzzer = PiezoBuzzer;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_remotecontrolbutton.js.html b/docs/devices_remotecontrolbutton.js.html
index eabf292..eb228b2 100644
--- a/docs/devices_remotecontrolbutton.js.html
+++ b/docs/devices_remotecontrolbutton.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -171,7 +171,7 @@ exports.ButtonState = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_simplemediumlinearmotor.js.html b/docs/devices_simplemediumlinearmotor.js.html
index 1dc20e4..a1ad06d 100644
--- a/docs/devices_simplemediumlinearmotor.js.html
+++ b/docs/devices_simplemediumlinearmotor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -143,7 +143,7 @@ exports.SimpleMediumLinearMotor = SimpleMediumLinearMotor;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_tachomotor.js.html b/docs/devices_tachomotor.js.html
index e19b347..2ef0b83 100644
--- a/docs/devices_tachomotor.js.html
+++ b/docs/devices_tachomotor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -254,7 +254,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_techniccolorsensor.js.html b/docs/devices_techniccolorsensor.js.html
index 603acc6..8f3de0f 100644
--- a/docs/devices_techniccolorsensor.js.html
+++ b/docs/devices_techniccolorsensor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -191,7 +191,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_technicdistancesensor.js.html b/docs/devices_technicdistancesensor.js.html
index 525d89a..6990f07 100644
--- a/docs/devices_technicdistancesensor.js.html
+++ b/docs/devices_technicdistancesensor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -189,7 +189,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_technicforcesensor.js.html b/docs/devices_technicforcesensor.js.html
index 994bb0d..7cf8214 100644
--- a/docs/devices_technicforcesensor.js.html
+++ b/docs/devices_technicforcesensor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -189,7 +189,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_techniclargeangularmotor.js.html b/docs/devices_techniclargeangularmotor.js.html
index 0e6571a..abde2f4 100644
--- a/docs/devices_techniclargeangularmotor.js.html
+++ b/docs/devices_techniclargeangularmotor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -143,7 +143,7 @@ exports.TechnicLargeAngularMotor = TechnicLargeAngularMotor;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_techniclargelinearmotor.js.html b/docs/devices_techniclargelinearmotor.js.html
index 83ab2d8..fd2a616 100644
--- a/docs/devices_techniclargelinearmotor.js.html
+++ b/docs/devices_techniclargelinearmotor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -143,7 +143,7 @@ exports.TechnicLargeLinearMotor = TechnicLargeLinearMotor;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_technicmediumangularmotor.js.html b/docs/devices_technicmediumangularmotor.js.html
index 22a2e71..0116a13 100644
--- a/docs/devices_technicmediumangularmotor.js.html
+++ b/docs/devices_technicmediumangularmotor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -143,7 +143,7 @@ exports.TechnicMediumAngularMotor = TechnicMediumAngularMotor;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_technicmediumhubaccelerometersensor.js.html b/docs/devices_technicmediumhubaccelerometersensor.js.html
index 85f89c0..ee8a57c 100644
--- a/docs/devices_technicmediumhubaccelerometersensor.js.html
+++ b/docs/devices_technicmediumhubaccelerometersensor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -169,7 +169,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_technicmediumhubgyrosensor.js.html b/docs/devices_technicmediumhubgyrosensor.js.html
index 9ad8e5e..d1ef560 100644
--- a/docs/devices_technicmediumhubgyrosensor.js.html
+++ b/docs/devices_technicmediumhubgyrosensor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -169,7 +169,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_technicmediumhubtiltsensor.js.html b/docs/devices_technicmediumhubtiltsensor.js.html
index f6bbe48..2b7cb74 100644
--- a/docs/devices_technicmediumhubtiltsensor.js.html
+++ b/docs/devices_technicmediumhubtiltsensor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -169,7 +169,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_technicxlargelinearmotor.js.html b/docs/devices_technicxlargelinearmotor.js.html
index b3d40ca..d06412b 100644
--- a/docs/devices_technicxlargelinearmotor.js.html
+++ b/docs/devices_technicxlargelinearmotor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -143,7 +143,7 @@ exports.TechnicXLargeLinearMotor = TechnicXLargeLinearMotor;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_tiltsensor.js.html b/docs/devices_tiltsensor.js.html
index 5112b01..6fa9ffc 100644
--- a/docs/devices_tiltsensor.js.html
+++ b/docs/devices_tiltsensor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -167,7 +167,7 @@ exports.ModeMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_trainmotor.js.html b/docs/devices_trainmotor.js.html
index 6ae8679..33f2db0 100644
--- a/docs/devices_trainmotor.js.html
+++ b/docs/devices_trainmotor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -143,7 +143,7 @@ exports.TrainMotor = TrainMotor;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/devices_voltagesensor.js.html b/docs/devices_voltagesensor.js.html
index e509767..5a169ed 100644
--- a/docs/devices_voltagesensor.js.html
+++ b/docs/devices_voltagesensor.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -190,7 +190,7 @@ const MaxVoltageRaw = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/hubs_basehub.js.html b/docs/hubs_basehub.js.html
index 910438d..ba912dd 100644
--- a/docs/hubs_basehub.js.html
+++ b/docs/hubs_basehub.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -482,7 +482,7 @@ exports.BaseHub = BaseHub;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/hubs_duplotrainbase.js.html b/docs/hubs_duplotrainbase.js.html
index 5d53f26..6be0c3c 100644
--- a/docs/hubs_duplotrainbase.js.html
+++ b/docs/hubs_duplotrainbase.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -169,7 +169,7 @@ exports.PortMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/hubs_hub.js.html b/docs/hubs_hub.js.html
index d02c5d4..461ad36 100644
--- a/docs/hubs_hub.js.html
+++ b/docs/hubs_hub.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -181,7 +181,7 @@ exports.PortMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/hubs_lpf2hub.js.html b/docs/hubs_lpf2hub.js.html
index 574986c..e36abb6 100644
--- a/docs/hubs_lpf2hub.js.html
+++ b/docs/hubs_lpf2hub.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -467,7 +467,7 @@ exports.LPF2Hub = LPF2Hub;
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/hubs_movehub.js.html b/docs/hubs_movehub.js.html
index 6b3ed47..e332919 100644
--- a/docs/hubs_movehub.js.html
+++ b/docs/hubs_movehub.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -183,7 +183,7 @@ exports.PortMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/hubs_remotecontrol.js.html b/docs/hubs_remotecontrol.js.html
index ded1a63..9c1aed3 100644
--- a/docs/hubs_remotecontrol.js.html
+++ b/docs/hubs_remotecontrol.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -171,7 +171,7 @@ exports.PortMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/hubs_technicmediumhub.js.html b/docs/hubs_technicmediumhub.js.html
index 3adc0c0..b4d116f 100644
--- a/docs/hubs_technicmediumhub.js.html
+++ b/docs/hubs_technicmediumhub.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -177,7 +177,7 @@ exports.PortMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/hubs_wedo2smarthub.js.html b/docs/hubs_wedo2smarthub.js.html
index 87aa1ee..4b624b1 100644
--- a/docs/hubs_wedo2smarthub.js.html
+++ b/docs/hubs_wedo2smarthub.js.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -323,7 +323,7 @@ exports.PortMap = {
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/index.html b/docs/index.html
index 3ff8633..3904bb0 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -33,14 +33,14 @@
Classes
Events
@@ -236,8 +236,8 @@
SPIKE Prime Color Sensor |
45678 |
-Motor/Sensor |
-Partial |
+Sensor |
+No |
Yes |
Yes |
Yes |
@@ -246,8 +246,8 @@
SPIKE Prime Distance Sensor |
45678 |
-Motor/Sensor |
-Partial |
+Sensor |
+No |
Yes |
Yes |
Yes |
@@ -256,8 +256,8 @@
SPIKE Prime Force Sensor |
45678 |
-Motor/Sensor |
-Partial |
+Sensor |
+No |
Yes |
Yes |
Yes |
@@ -317,13 +317,10 @@
Known Issues and Limitations
-
-
The Boost Color and Distance sensor only works in color mode with the WeDo 2.0 Smart Hub.
+The WeDo 2.0 Smart Hub uses an older firmware which is no longer being updated. As a result, only certain motors and sensors work with it. See the table above.
-
-
When used with the WeDo 2.0 Smart Hub, the Boost Tacho Motor and Control+ Motors do not support rotating the motor by angle.
-
--
-
When used with the Boost Move Hub, the Control+ Motors do not currently accept commands.
+When used with the Boost Move Hub, the Control+ Motors do not currently accept commands (This is a known but which requires a firmware update from Lego to fix)
-
The SPIKE Prime Hub does not use Bluetooth Low Energy, so is not supported via this library. It is recommended you use MicroPython and Bluetooth Classic to develop for this Hub.
@@ -338,22 +335,22 @@ const poweredUP = new PoweredUP.PoweredUP();
poweredUP.on("discover", async (hub) => { // Wait to discover a Hub
console.log(`Discovered ${hub.name}!`);
await hub.connect(); // Connect to the Hub
- const motorA = hub.waitForDeviceAtPort("A"); // Make sure a motor is plugged into port A
- const motorB = hub.waitForDeviceAtPort("B"); // Make sure a motor is plugged into port B
+ const motorA = await hub.waitForDeviceAtPort("A"); // Make sure a motor is plugged into port A
+ const motorB = await hub.waitForDeviceAtPort("B"); // Make sure a motor is plugged into port B
console.log("Connected");
while (true) { // Repeat indefinitely
- console.log("Running motor B at speed 75");
- motorB.setPower("B", 75); // Start a motor attached to port B to run a 3/4 speed (75) indefinitely
+ console.log("Running motor B at speed 50");
+ motorB.setPower(50); // Start a motor attached to port B to run a 3/4 speed (75) indefinitely
console.log("Running motor A at speed 100 for 2 seconds");
- motorA.setPower("A", 100); // Run a motor attached to port A for 2 seconds at maximum speed (100) then stop
+ motorA.setPower(100); // Run a motor attached to port A for 2 seconds at maximum speed (100) then stop
await hub.sleep(2000);
- motorA.setPower("A", 0);
+ motorA.brake();
await hub.sleep(1000); // Do nothing for 1 second
- console.log("Running motor A at speed -50 for 1 second");
- motorA.setPower("A", -50); // Run a motor attached to port A for 1 second at 1/2 speed in reverse (-50) then stop
- hub.sleep(1000);
- motorA.setPower("A", 0);
+ console.log("Running motor A at speed -30 for 1 second");
+ motorA.setPower(-30); // Run a motor attached to port A for 2 seconds at 1/2 speed in reverse (-50) then stop
+ await hub.sleep(2000);
+ motorA.brake();
await hub.sleep(1000); // Do nothing for 1 second
}
});
@@ -413,7 +410,7 @@ console.log("Scanning for Hubs...");
Documentation generated by JSDoc 3.6.3
- on Mon Feb 10th 2020
+ on Tue Feb 11th 2020
using the DocStrap template.
diff --git a/docs/quicksearch.html b/docs/quicksearch.html
index c893589..7c792b6 100644
--- a/docs/quicksearch.html
+++ b/docs/quicksearch.html
@@ -7,7 +7,7 @@