From 51edf0b9334b26d87a71768a31caa04a9fd55008 Mon Sep 17 00:00:00 2001 From: Nathan Kellenicki Date: Wed, 23 Dec 2020 13:38:40 -0800 Subject: [PATCH] Updated docs, bumped version --- docs/AbsoluteMotor.html | 6 +- docs/BaseHub.html | 26 +- docs/BasicMotor.html | 6 +- docs/BoostMoveHub.html | 30 +- docs/ColorDistanceSensor.html | 6 +- docs/ControlPlusHub.html | 30 +- docs/CurrentSensor.html | 6 +- docs/Device.html | 6 +- docs/DuploTrainBase.html | 24 +- docs/DuploTrainBaseColorSensor.html | 6 +- docs/DuploTrainBaseMotor.html | 6 +- docs/DuploTrainBaseSpeaker.html | 6 +- docs/DuploTraniBaseSpeedometer.html | 6 +- docs/Hub.html | 48 +- docs/HubLED.html | 6 +- docs/LPF2Hub.html | 24 +- docs/Light.html | 6 +- docs/Mario.html | 24 +- docs/MarioAccelerometer.html | 1456 +++++++++++++++++ docs/MarioBarcodeSensor.html | 6 +- docs/MarioPantsSensor.html | 6 +- docs/MediumLinearMotor.html | 6 +- docs/MotionSensor.html | 6 +- docs/MoveHub.html | 24 +- docs/MoveHubMediumLinearMotor.html | 6 +- docs/MoveHubTiltSensor.html | 6 +- docs/PUPHub.html | 48 +- docs/PUPRemote.html | 48 +- docs/PiezoBuzzer.html | 6 +- docs/RemoteControl.html | 24 +- docs/RemoteControlButton.html | 6 +- docs/SimpleMediumLinearMotor.html | 6 +- docs/TachoMotor.html | 6 +- docs/TechnicColorSensor.html | 6 +- docs/TechnicDistanceSensor.html | 6 +- docs/TechnicForceSensor.html | 6 +- docs/TechnicLargeAngularMotor.html | 6 +- docs/TechnicLargeLinearMotor.html | 6 +- docs/TechnicMediumAngularMotor.html | 6 +- docs/TechnicMediumHub.html | 24 +- docs/TechnicMediumHubAccelerometerSensor.html | 6 +- docs/TechnicMediumHubGyroSensor.html | 6 +- docs/TechnicMediumHubTiltSensor.html | 6 +- docs/TechnicXLargeLinearMotor.html | 6 +- docs/TiltSensor.html | 6 +- docs/TrainMotor.html | 6 +- docs/VoltageSensor.html | 6 +- docs/WeDo2SmartHub.html | 24 +- docs/classes.list.html | 375 ++++- docs/devices_absolutemotor.js.html | 6 +- docs/devices_basicmotor.js.html | 6 +- docs/devices_colordistancesensor.js.html | 6 +- docs/devices_currentsensor.js.html | 6 +- docs/devices_device.js.html | 6 +- .../devices_duplotrainbasecolorsensor.js.html | 6 +- docs/devices_duplotrainbasemotor.js.html | 6 +- docs/devices_duplotrainbasespeaker.js.html | 6 +- .../devices_duplotrainbasespeedometer.js.html | 6 +- docs/devices_hubled.js.html | 6 +- docs/devices_light.js.html | 6 +- docs/devices_marioaccelerometer.js.html | 288 ++++ docs/devices_mariobarcodesensor.js.html | 6 +- docs/devices_mariopantssensor.js.html | 6 +- docs/devices_mediumlinearmotor.js.html | 6 +- docs/devices_motionsensor.js.html | 6 +- docs/devices_movehubmediumlinearmotor.js.html | 6 +- docs/devices_movehubtiltsensor.js.html | 6 +- docs/devices_piezobuzzer.js.html | 6 +- docs/devices_remotecontrolbutton.js.html | 6 +- docs/devices_simplemediumlinearmotor.js.html | 6 +- docs/devices_tachomotor.js.html | 6 +- docs/devices_techniccolorsensor.js.html | 6 +- docs/devices_technicdistancesensor.js.html | 6 +- docs/devices_technicforcesensor.js.html | 6 +- docs/devices_techniclargeangularmotor.js.html | 6 +- docs/devices_techniclargelinearmotor.js.html | 6 +- .../devices_technicmediumangularmotor.js.html | 6 +- ...echnicmediumhubaccelerometersensor.js.html | 6 +- ...devices_technicmediumhubgyrosensor.js.html | 6 +- ...devices_technicmediumhubtiltsensor.js.html | 6 +- docs/devices_technicxlargelinearmotor.js.html | 6 +- docs/devices_tiltsensor.js.html | 6 +- docs/devices_trainmotor.js.html | 6 +- docs/devices_voltagesensor.js.html | 6 +- docs/hubs_basehub.js.html | 8 +- docs/hubs_boostmovehub.js.html | 6 +- docs/hubs_controlplushub.js.html | 6 +- docs/hubs_duplotrainbase.js.html | 6 +- docs/hubs_hub.js.html | 6 +- docs/hubs_lpf2hub.js.html | 6 +- docs/hubs_mario.js.html | 6 +- docs/hubs_movehub.js.html | 6 +- docs/hubs_puphub.js.html | 6 +- docs/hubs_pupremote.js.html | 6 +- docs/hubs_remotecontrol.js.html | 6 +- docs/hubs_technicmediumhub.js.html | 6 +- docs/hubs_wedo2smarthub.js.html | 6 +- docs/index.html | 6 +- docs/quicksearch.html | 2 +- package-lock.json | 2 +- package.json | 2 +- 101 files changed, 2551 insertions(+), 466 deletions(-) create mode 100644 docs/MarioAccelerometer.html create mode 100644 docs/devices_marioaccelerometer.js.html diff --git a/docs/AbsoluteMotor.html b/docs/AbsoluteMotor.html index 5aecad4..ecb0e51 100644 --- a/docs/AbsoluteMotor.html +++ b/docs/AbsoluteMotor.html @@ -33,14 +33,14 @@ @@ -2128,7 +2128,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/BaseHub.html b/docs/BaseHub.html index 728ec39..2b7c40b 100644 --- a/docs/BaseHub.html +++ b/docs/BaseHub.html @@ -33,14 +33,14 @@ @@ -142,7 +142,7 @@ @@ -300,7 +300,7 @@ @@ -419,7 +419,7 @@ @@ -538,7 +538,7 @@ @@ -657,7 +657,7 @@ @@ -776,7 +776,7 @@ @@ -895,7 +895,7 @@ @@ -1014,7 +1014,7 @@ @@ -1133,7 +1133,7 @@ @@ -1252,7 +1252,7 @@ @@ -1325,7 +1325,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/BasicMotor.html b/docs/BasicMotor.html index f8225e0..5be83b7 100644 --- a/docs/BasicMotor.html +++ b/docs/BasicMotor.html @@ -33,14 +33,14 @@ @@ -1622,7 +1622,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/BoostMoveHub.html b/docs/BoostMoveHub.html index 267a78b..2100b70 100644 --- a/docs/BoostMoveHub.html +++ b/docs/BoostMoveHub.html @@ -33,14 +33,14 @@ @@ -279,7 +279,7 @@ @@ -596,7 +596,7 @@ @@ -767,7 +767,7 @@ @@ -891,7 +891,7 @@ @@ -1062,7 +1062,7 @@ @@ -1526,7 +1526,7 @@ @@ -1698,7 +1698,7 @@ @@ -1870,7 +1870,7 @@ @@ -2042,7 +2042,7 @@ @@ -2221,7 +2221,7 @@ @@ -2539,7 +2539,7 @@ @@ -2636,7 +2636,7 @@ @@ -2715,7 +2715,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/ColorDistanceSensor.html b/docs/ColorDistanceSensor.html index 062331d..f6313a3 100644 --- a/docs/ColorDistanceSensor.html +++ b/docs/ColorDistanceSensor.html @@ -33,14 +33,14 @@ @@ -2394,7 +2394,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/ControlPlusHub.html b/docs/ControlPlusHub.html index d0e34d0..3e7dbbf 100644 --- a/docs/ControlPlusHub.html +++ b/docs/ControlPlusHub.html @@ -33,14 +33,14 @@ @@ -279,7 +279,7 @@ @@ -596,7 +596,7 @@ @@ -767,7 +767,7 @@ @@ -891,7 +891,7 @@ @@ -1062,7 +1062,7 @@ @@ -1526,7 +1526,7 @@ @@ -1698,7 +1698,7 @@ @@ -1870,7 +1870,7 @@ @@ -2042,7 +2042,7 @@ @@ -2221,7 +2221,7 @@ @@ -2539,7 +2539,7 @@ @@ -2636,7 +2636,7 @@ @@ -2715,7 +2715,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/CurrentSensor.html b/docs/CurrentSensor.html index 9570e8e..69f72cd 100644 --- a/docs/CurrentSensor.html +++ b/docs/CurrentSensor.html @@ -33,14 +33,14 @@ @@ -1170,7 +1170,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/Device.html b/docs/Device.html index 4066479..4460d84 100644 --- a/docs/Device.html +++ b/docs/Device.html @@ -33,14 +33,14 @@ @@ -968,7 +968,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html index 79a33e9..e3c9565 100644 --- a/docs/DuploTrainBase.html +++ b/docs/DuploTrainBase.html @@ -33,14 +33,14 @@ @@ -315,7 +315,7 @@ @@ -443,7 +443,7 @@ @@ -571,7 +571,7 @@ @@ -699,7 +699,7 @@ @@ -827,7 +827,7 @@ @@ -955,7 +955,7 @@ @@ -1083,7 +1083,7 @@ @@ -1211,7 +1211,7 @@ @@ -1339,7 +1339,7 @@ @@ -2079,7 +2079,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/DuploTrainBaseColorSensor.html b/docs/DuploTrainBaseColorSensor.html index 654aec4..91762b8 100644 --- a/docs/DuploTrainBaseColorSensor.html +++ b/docs/DuploTrainBaseColorSensor.html @@ -33,14 +33,14 @@ @@ -1506,7 +1506,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/DuploTrainBaseMotor.html b/docs/DuploTrainBaseMotor.html index f67fa17..46eed43 100644 --- a/docs/DuploTrainBaseMotor.html +++ b/docs/DuploTrainBaseMotor.html @@ -33,14 +33,14 @@ @@ -1658,7 +1658,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/DuploTrainBaseSpeaker.html b/docs/DuploTrainBaseSpeaker.html index 1ae67da..3c65e90 100644 --- a/docs/DuploTrainBaseSpeaker.html +++ b/docs/DuploTrainBaseSpeaker.html @@ -33,14 +33,14 @@ @@ -1350,7 +1350,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/DuploTraniBaseSpeedometer.html b/docs/DuploTraniBaseSpeedometer.html index a4adea0..5764727 100644 --- a/docs/DuploTraniBaseSpeedometer.html +++ b/docs/DuploTraniBaseSpeedometer.html @@ -33,14 +33,14 @@ @@ -1022,7 +1022,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/Hub.html b/docs/Hub.html index 8a7e7c2..bb71fe5 100644 --- a/docs/Hub.html +++ b/docs/Hub.html @@ -33,14 +33,14 @@ @@ -315,7 +315,7 @@ @@ -443,7 +443,7 @@ @@ -571,7 +571,7 @@ @@ -699,7 +699,7 @@ @@ -827,7 +827,7 @@ @@ -955,7 +955,7 @@ @@ -1083,7 +1083,7 @@ @@ -1211,7 +1211,7 @@ @@ -1339,7 +1339,7 @@ @@ -1421,7 +1421,7 @@ @@ -1729,7 +1729,7 @@ @@ -1891,7 +1891,7 @@ @@ -2006,7 +2006,7 @@ @@ -2168,7 +2168,7 @@ @@ -2623,7 +2623,7 @@ @@ -2786,7 +2786,7 @@ @@ -2949,7 +2949,7 @@ @@ -3112,7 +3112,7 @@ @@ -3282,7 +3282,7 @@ @@ -3591,7 +3591,7 @@ @@ -3679,7 +3679,7 @@ @@ -3758,7 +3758,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/HubLED.html b/docs/HubLED.html index a039a34..98f6b4c 100644 --- a/docs/HubLED.html +++ b/docs/HubLED.html @@ -33,14 +33,14 @@ @@ -1398,7 +1398,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html index 08a842f..3568d2e 100644 --- a/docs/LPF2Hub.html +++ b/docs/LPF2Hub.html @@ -33,14 +33,14 @@ @@ -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,7 +1077,7 @@ @@ -1205,7 +1205,7 @@ @@ -1333,7 +1333,7 @@ @@ -2037,7 +2037,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/Light.html b/docs/Light.html index 1e58a99..09a52c4 100644 --- a/docs/Light.html +++ b/docs/Light.html @@ -33,14 +33,14 @@ @@ -1398,7 +1398,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/Mario.html b/docs/Mario.html index e4d7639..eb419d3 100644 --- a/docs/Mario.html +++ b/docs/Mario.html @@ -33,14 +33,14 @@ @@ -320,7 +320,7 @@ @@ -453,7 +453,7 @@ @@ -586,7 +586,7 @@ @@ -719,7 +719,7 @@ @@ -852,7 +852,7 @@ @@ -985,7 +985,7 @@ @@ -1118,7 +1118,7 @@ @@ -1251,7 +1251,7 @@ @@ -1384,7 +1384,7 @@ @@ -2124,7 +2124,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/MarioAccelerometer.html b/docs/MarioAccelerometer.html new file mode 100644 index 0000000..8f1706b --- /dev/null +++ b/docs/MarioAccelerometer.html @@ -0,0 +1,1456 @@ + + + + + + + node-poweredup Class: MarioAccelerometer + + + + + + + + + + + + + +
+
+ + +
+ +
+ + +

Class: MarioAccelerometer

+
+ +
+ +

+ MarioAccelerometer +

+ + +
+ + +
+
+ + +
+
+

new MarioAccelerometer()

+ + +
+
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + +
+ + +
+ + +

Extends

+ + + + + + + + + + + + + + + + + + +

Members

+ +
+ +
+
+

<readonly> connected

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
connected + + +boolean + + + + +

Check if the device is still attached.

+
+ + + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + +
+ + + +
+
+

<readonly> hub

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hub + + +Hub + + + + +

The Hub the device is attached to.

+
+ + + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + +
+ + + +
+
+

<readonly> isVirtualPort

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
isVirtualPort + + +boolean + + + + +

Is this device attached to a virtual port (ie. a combined device)

+
+ + + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + +
+ + + +
+
+

<readonly> mode

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
mode + + +number + + + + +

The mode the device is currently in

+
+ + + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + +
+ + + +
+
+

<readonly> portName

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
portName + + +string + + + + +

The port the device is attached to.

+
+ + + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + +
+ + + +
+
+

<readonly> type

+ + +
+
+ + + + + +
+ + +
Properties:
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
type + + +number + + + + +

The type of the device

+
+ + + + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + +
+ +
+ + + + + + + +

Events

+ +
+ +
+
+

accel

+ + +
+
+ + +
+

Emits when accelerometer detects movement. Measured in mG.

+
+ + + + + +
Type: +object + + +
+ + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + +
+
+

gest

+ + +
+
+ + +
+

Emits when a gesture is detected

+
+ + + + + +
Type: +object + + +
+ + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gesture + + +number + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + +
+ +
+ +
+ +
+ + + + +
+
+ +
+ + +
+ +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/MarioBarcodeSensor.html b/docs/MarioBarcodeSensor.html index 9017e72..f2417ae 100644 --- a/docs/MarioBarcodeSensor.html +++ b/docs/MarioBarcodeSensor.html @@ -33,14 +33,14 @@ @@ -1362,7 +1362,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/MarioPantsSensor.html b/docs/MarioPantsSensor.html index b79d9b7..1859db2 100644 --- a/docs/MarioPantsSensor.html +++ b/docs/MarioPantsSensor.html @@ -33,14 +33,14 @@ @@ -1170,7 +1170,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/MediumLinearMotor.html b/docs/MediumLinearMotor.html index 958a5ff..a43b0b0 100644 --- a/docs/MediumLinearMotor.html +++ b/docs/MediumLinearMotor.html @@ -33,14 +33,14 @@ @@ -1471,7 +1471,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/MotionSensor.html b/docs/MotionSensor.html index 5f01721..ba74012 100644 --- a/docs/MotionSensor.html +++ b/docs/MotionSensor.html @@ -33,14 +33,14 @@ @@ -1170,7 +1170,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/MoveHub.html b/docs/MoveHub.html index e3ddca8..68892e4 100644 --- a/docs/MoveHub.html +++ b/docs/MoveHub.html @@ -33,14 +33,14 @@ @@ -320,7 +320,7 @@ @@ -453,7 +453,7 @@ @@ -586,7 +586,7 @@ @@ -719,7 +719,7 @@ @@ -852,7 +852,7 @@ @@ -985,7 +985,7 @@ @@ -1118,7 +1118,7 @@ @@ -1251,7 +1251,7 @@ @@ -1384,7 +1384,7 @@ @@ -2124,7 +2124,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/MoveHubMediumLinearMotor.html b/docs/MoveHubMediumLinearMotor.html index 5438fd9..e987d11 100644 --- a/docs/MoveHubMediumLinearMotor.html +++ b/docs/MoveHubMediumLinearMotor.html @@ -33,14 +33,14 @@ @@ -1471,7 +1471,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/MoveHubTiltSensor.html b/docs/MoveHubTiltSensor.html index b73ca8a..b43bee8 100644 --- a/docs/MoveHubTiltSensor.html +++ b/docs/MoveHubTiltSensor.html @@ -33,14 +33,14 @@ @@ -1194,7 +1194,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/PUPHub.html b/docs/PUPHub.html index 0c3f8d7..674da72 100644 --- a/docs/PUPHub.html +++ b/docs/PUPHub.html @@ -33,14 +33,14 @@ @@ -320,7 +320,7 @@ @@ -453,7 +453,7 @@ @@ -586,7 +586,7 @@ @@ -719,7 +719,7 @@ @@ -852,7 +852,7 @@ @@ -985,7 +985,7 @@ @@ -1118,7 +1118,7 @@ @@ -1251,7 +1251,7 @@ @@ -1384,7 +1384,7 @@ @@ -1480,7 +1480,7 @@ @@ -1802,7 +1802,7 @@ @@ -1973,7 +1973,7 @@ @@ -2097,7 +2097,7 @@ @@ -2268,7 +2268,7 @@ @@ -2742,7 +2742,7 @@ @@ -2914,7 +2914,7 @@ @@ -3086,7 +3086,7 @@ @@ -3258,7 +3258,7 @@ @@ -3437,7 +3437,7 @@ @@ -3760,7 +3760,7 @@ @@ -3857,7 +3857,7 @@ @@ -3936,7 +3936,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/PUPRemote.html b/docs/PUPRemote.html index 38f4517..2d88405 100644 --- a/docs/PUPRemote.html +++ b/docs/PUPRemote.html @@ -33,14 +33,14 @@ @@ -320,7 +320,7 @@ @@ -453,7 +453,7 @@ @@ -586,7 +586,7 @@ @@ -719,7 +719,7 @@ @@ -852,7 +852,7 @@ @@ -985,7 +985,7 @@ @@ -1118,7 +1118,7 @@ @@ -1251,7 +1251,7 @@ @@ -1384,7 +1384,7 @@ @@ -1480,7 +1480,7 @@ @@ -1802,7 +1802,7 @@ @@ -1973,7 +1973,7 @@ @@ -2097,7 +2097,7 @@ @@ -2268,7 +2268,7 @@ @@ -2742,7 +2742,7 @@ @@ -2914,7 +2914,7 @@ @@ -3086,7 +3086,7 @@ @@ -3258,7 +3258,7 @@ @@ -3437,7 +3437,7 @@ @@ -3760,7 +3760,7 @@ @@ -3857,7 +3857,7 @@ @@ -3936,7 +3936,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/PiezoBuzzer.html b/docs/PiezoBuzzer.html index 7361a9c..5226e6b 100644 --- a/docs/PiezoBuzzer.html +++ b/docs/PiezoBuzzer.html @@ -33,14 +33,14 @@ @@ -1212,7 +1212,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/RemoteControl.html b/docs/RemoteControl.html index 3d8e467..f89f0aa 100644 --- a/docs/RemoteControl.html +++ b/docs/RemoteControl.html @@ -33,14 +33,14 @@ @@ -320,7 +320,7 @@ @@ -453,7 +453,7 @@ @@ -586,7 +586,7 @@ @@ -719,7 +719,7 @@ @@ -852,7 +852,7 @@ @@ -985,7 +985,7 @@ @@ -1118,7 +1118,7 @@ @@ -1251,7 +1251,7 @@ @@ -1384,7 +1384,7 @@ @@ -2124,7 +2124,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/RemoteControlButton.html b/docs/RemoteControlButton.html index 99ec5ec..f1a9482 100644 --- a/docs/RemoteControlButton.html +++ b/docs/RemoteControlButton.html @@ -33,14 +33,14 @@ @@ -1170,7 +1170,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/SimpleMediumLinearMotor.html b/docs/SimpleMediumLinearMotor.html index 5e8ce04..2e83f2c 100644 --- a/docs/SimpleMediumLinearMotor.html +++ b/docs/SimpleMediumLinearMotor.html @@ -33,14 +33,14 @@ @@ -1022,7 +1022,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TachoMotor.html b/docs/TachoMotor.html index 18e453d..5c70085 100644 --- a/docs/TachoMotor.html +++ b/docs/TachoMotor.html @@ -33,14 +33,14 @@ @@ -2812,7 +2812,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TechnicColorSensor.html b/docs/TechnicColorSensor.html index d346460..2640913 100644 --- a/docs/TechnicColorSensor.html +++ b/docs/TechnicColorSensor.html @@ -33,14 +33,14 @@ @@ -1672,7 +1672,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TechnicDistanceSensor.html b/docs/TechnicDistanceSensor.html index d2b01e4..07ccffa 100644 --- a/docs/TechnicDistanceSensor.html +++ b/docs/TechnicDistanceSensor.html @@ -33,14 +33,14 @@ @@ -1552,7 +1552,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TechnicForceSensor.html b/docs/TechnicForceSensor.html index 0ec4fae..04bbf26 100644 --- a/docs/TechnicForceSensor.html +++ b/docs/TechnicForceSensor.html @@ -33,14 +33,14 @@ @@ -1458,7 +1458,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TechnicLargeAngularMotor.html b/docs/TechnicLargeAngularMotor.html index 55f617c..6ef33f6 100644 --- a/docs/TechnicLargeAngularMotor.html +++ b/docs/TechnicLargeAngularMotor.html @@ -33,14 +33,14 @@ @@ -2164,7 +2164,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TechnicLargeLinearMotor.html b/docs/TechnicLargeLinearMotor.html index a053d14..68a1ac0 100644 --- a/docs/TechnicLargeLinearMotor.html +++ b/docs/TechnicLargeLinearMotor.html @@ -33,14 +33,14 @@ @@ -2164,7 +2164,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TechnicMediumAngularMotor.html b/docs/TechnicMediumAngularMotor.html index 8aab33a..cc050cc 100644 --- a/docs/TechnicMediumAngularMotor.html +++ b/docs/TechnicMediumAngularMotor.html @@ -33,14 +33,14 @@ @@ -2164,7 +2164,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TechnicMediumHub.html b/docs/TechnicMediumHub.html index 8b30a83..3ed46c5 100644 --- a/docs/TechnicMediumHub.html +++ b/docs/TechnicMediumHub.html @@ -33,14 +33,14 @@ @@ -320,7 +320,7 @@ @@ -453,7 +453,7 @@ @@ -586,7 +586,7 @@ @@ -719,7 +719,7 @@ @@ -852,7 +852,7 @@ @@ -985,7 +985,7 @@ @@ -1118,7 +1118,7 @@ @@ -1251,7 +1251,7 @@ @@ -1384,7 +1384,7 @@ @@ -2124,7 +2124,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TechnicMediumHubAccelerometerSensor.html b/docs/TechnicMediumHubAccelerometerSensor.html index 3de8f3f..df51cc3 100644 --- a/docs/TechnicMediumHubAccelerometerSensor.html +++ b/docs/TechnicMediumHubAccelerometerSensor.html @@ -33,14 +33,14 @@ @@ -1218,7 +1218,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TechnicMediumHubGyroSensor.html b/docs/TechnicMediumHubGyroSensor.html index e93ec11..ae9d43c 100644 --- a/docs/TechnicMediumHubGyroSensor.html +++ b/docs/TechnicMediumHubGyroSensor.html @@ -33,14 +33,14 @@ @@ -1218,7 +1218,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TechnicMediumHubTiltSensor.html b/docs/TechnicMediumHubTiltSensor.html index 96713a0..9e0b371 100644 --- a/docs/TechnicMediumHubTiltSensor.html +++ b/docs/TechnicMediumHubTiltSensor.html @@ -33,14 +33,14 @@ @@ -1218,7 +1218,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TechnicXLargeLinearMotor.html b/docs/TechnicXLargeLinearMotor.html index fdf6d6e..f72b16a 100644 --- a/docs/TechnicXLargeLinearMotor.html +++ b/docs/TechnicXLargeLinearMotor.html @@ -33,14 +33,14 @@ @@ -2164,7 +2164,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TiltSensor.html b/docs/TiltSensor.html index 44f0ad7..2cd0696 100644 --- a/docs/TiltSensor.html +++ b/docs/TiltSensor.html @@ -33,14 +33,14 @@ @@ -1194,7 +1194,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/TrainMotor.html b/docs/TrainMotor.html index a1e1f1f..f7542ca 100644 --- a/docs/TrainMotor.html +++ b/docs/TrainMotor.html @@ -33,14 +33,14 @@ @@ -1658,7 +1658,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/VoltageSensor.html b/docs/VoltageSensor.html index d5fe3a9..cc0df11 100644 --- a/docs/VoltageSensor.html +++ b/docs/VoltageSensor.html @@ -33,14 +33,14 @@ @@ -1170,7 +1170,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html index 985d3ff..bc5b9ee 100644 --- a/docs/WeDo2SmartHub.html +++ b/docs/WeDo2SmartHub.html @@ -33,14 +33,14 @@ @@ -313,7 +313,7 @@ @@ -441,7 +441,7 @@ @@ -569,7 +569,7 @@ @@ -697,7 +697,7 @@ @@ -825,7 +825,7 @@ @@ -953,7 +953,7 @@ @@ -1081,7 +1081,7 @@ @@ -1209,7 +1209,7 @@ @@ -1337,7 +1337,7 @@ @@ -1854,7 +1854,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/classes.list.html b/docs/classes.list.html index df30c76..298606b 100644 --- a/docs/classes.list.html +++ b/docs/classes.list.html @@ -33,14 +33,14 @@ @@ -196,6 +196,9 @@
Mario
+
MarioAccelerometer
+
+
MarioBarcodeSensor
@@ -713,7 +716,7 @@ @@ -1031,7 +1034,7 @@ @@ -1128,7 +1131,7 @@ @@ -1731,7 +1734,7 @@ @@ -2049,7 +2052,7 @@ @@ -2146,7 +2149,7 @@ @@ -3223,7 +3226,7 @@ @@ -3532,7 +3535,7 @@ @@ -3620,7 +3623,7 @@ @@ -3980,6 +3983,342 @@ + + + + +
+
+

accel

+ + +
+
+ + +
+

Emits when accelerometer detects movement. Measured in mG.

+
+ + + + + +
Type: +object + + +
+ + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + +number + + + + +
y + + +number + + + + +
z + + +number + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + +
+ + + +
+
+

gest

+ + +
+
+ + +
+

Emits when a gesture is detected

+
+ + + + + +
Type: +object + + +
+ + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gesture + + +number + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + +
@@ -5369,7 +5708,7 @@ @@ -5692,7 +6031,7 @@ @@ -5789,7 +6128,7 @@ @@ -5936,7 +6275,7 @@ @@ -6259,7 +6598,7 @@ @@ -6356,7 +6695,7 @@ @@ -10491,7 +10830,7 @@ Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_absolutemotor.js.html b/docs/devices_absolutemotor.js.html index fd07473..1dfb4ce 100644 --- a/docs/devices_absolutemotor.js.html +++ b/docs/devices_absolutemotor.js.html @@ -33,14 +33,14 @@ @@ -263,7 +263,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_basicmotor.js.html b/docs/devices_basicmotor.js.html index e0cd2f4..73129b5 100644 --- a/docs/devices_basicmotor.js.html +++ b/docs/devices_basicmotor.js.html @@ -33,14 +33,14 @@ @@ -205,7 +205,7 @@ exports.BasicMotor = BasicMotor; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_colordistancesensor.js.html b/docs/devices_colordistancesensor.js.html index eceae40..e5f544c 100644 --- a/docs/devices_colordistancesensor.js.html +++ b/docs/devices_colordistancesensor.js.html @@ -33,14 +33,14 @@ @@ -335,7 +335,7 @@ var Output; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_currentsensor.js.html b/docs/devices_currentsensor.js.html index b8c989a..1362e7a 100644 --- a/docs/devices_currentsensor.js.html +++ b/docs/devices_currentsensor.js.html @@ -33,14 +33,14 @@ @@ -199,7 +199,7 @@ const MaxCurrentRaw = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_device.js.html b/docs/devices_device.js.html index 9603667..341afe7 100644 --- a/docs/devices_device.js.html +++ b/docs/devices_device.js.html @@ -33,14 +33,14 @@ @@ -301,7 +301,7 @@ exports.Device = Device; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_duplotrainbasecolorsensor.js.html b/docs/devices_duplotrainbasecolorsensor.js.html index bfb9ba9..70750ad 100644 --- a/docs/devices_duplotrainbasecolorsensor.js.html +++ b/docs/devices_duplotrainbasecolorsensor.js.html @@ -33,14 +33,14 @@ @@ -208,7 +208,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_duplotrainbasemotor.js.html b/docs/devices_duplotrainbasemotor.js.html index 838a04f..6e88f17 100644 --- a/docs/devices_duplotrainbasemotor.js.html +++ b/docs/devices_duplotrainbasemotor.js.html @@ -33,14 +33,14 @@ @@ -156,7 +156,7 @@ exports.DuploTrainBaseMotor = DuploTrainBaseMotor; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_duplotrainbasespeaker.js.html b/docs/devices_duplotrainbasespeaker.js.html index 3697bd3..8252810 100644 --- a/docs/devices_duplotrainbasespeaker.js.html +++ b/docs/devices_duplotrainbasespeaker.js.html @@ -33,14 +33,14 @@ @@ -184,7 +184,7 @@ var Mode; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_duplotrainbasespeedometer.js.html b/docs/devices_duplotrainbasespeedometer.js.html index 8caaa52..93898fd 100644 --- a/docs/devices_duplotrainbasespeedometer.js.html +++ b/docs/devices_duplotrainbasespeedometer.js.html @@ -33,14 +33,14 @@ @@ -178,7 +178,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_hubled.js.html b/docs/devices_hubled.js.html index e6c3a3b..1e81e5d 100644 --- a/docs/devices_hubled.js.html +++ b/docs/devices_hubled.js.html @@ -33,14 +33,14 @@ @@ -204,7 +204,7 @@ var Mode; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_light.js.html b/docs/devices_light.js.html index 069efe6..a51b43f 100644 --- a/docs/devices_light.js.html +++ b/docs/devices_light.js.html @@ -33,14 +33,14 @@ @@ -190,7 +190,7 @@ exports.Light = Light; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_marioaccelerometer.js.html b/docs/devices_marioaccelerometer.js.html new file mode 100644 index 0000000..4c3637a --- /dev/null +++ b/docs/devices_marioaccelerometer.js.html @@ -0,0 +1,288 @@ + + + + + + + node-poweredup Source: devices/marioaccelerometer.js + + + + + + + + + + + + + +
+
+ + +
+ +
+ + +

Source: devices/marioaccelerometer.js

+ +
+
+
"use strict";
+var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
+    if (k2 === undefined) k2 = k;
+    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
+}) : (function(o, m, k, k2) {
+    if (k2 === undefined) k2 = k;
+    o[k2] = m[k];
+}));
+var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
+    Object.defineProperty(o, "default", { enumerable: true, value: v });
+}) : function(o, v) {
+    o["default"] = v;
+});
+var __importStar = (this && this.__importStar) || function (mod) {
+    if (mod && mod.__esModule) return mod;
+    var result = {};
+    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
+    __setModuleDefault(result, mod);
+    return result;
+};
+Object.defineProperty(exports, "__esModule", { value: true });
+exports.ModeMap = exports.Mode = exports.MarioAccelerometer = void 0;
+const device_1 = require("./device");
+const Consts = __importStar(require("../consts"));
+/**
+ * @class MarioAccelerometer
+ * @extends Device
+ */
+class MarioAccelerometer extends device_1.Device {
+    constructor(hub, portId) {
+        super(hub, portId, exports.ModeMap, Consts.DeviceType.MARIO_ACCELEROMETER);
+    }
+    receive(message) {
+        const mode = this._mode;
+        switch (mode) {
+            case Mode.ACCEL:
+                /**
+                 * Emits when accelerometer detects movement. Measured in mG.
+                 * @event MarioAccelerometer#accel
+                 * @type {object}
+                 * @param {number} x
+                 * @param {number} y
+                 * @param {number} z
+                 */
+                const x = message[4];
+                const y = message[5];
+                const z = message[6];
+                this.notify("accel", { x, y, z });
+                break;
+            case Mode.GEST:
+                /**
+                 * Emits when a gesture is detected
+                 * @event MarioAccelerometer#gest
+                 * @type {object}
+                 * @param {number} gesture
+                 */
+                const gesture = message[4];
+                this.notify("gesture", { gesture });
+                break;
+        }
+    }
+}
+exports.MarioAccelerometer = MarioAccelerometer;
+var Mode;
+(function (Mode) {
+    Mode[Mode["ACCEL"] = 0] = "ACCEL";
+    Mode[Mode["GEST"] = 1] = "GEST";
+})(Mode = exports.Mode || (exports.Mode = {}));
+exports.ModeMap = {
+    "accel": Mode.ACCEL,
+    "gesture": Mode.GEST,
+};
+//# sourceMappingURL=marioaccelerometer.js.map
+
+
+ + + + + +
+
+ +
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/devices_mariobarcodesensor.js.html b/docs/devices_mariobarcodesensor.js.html index 2605b97..b79c0df 100644 --- a/docs/devices_mariobarcodesensor.js.html +++ b/docs/devices_mariobarcodesensor.js.html @@ -33,14 +33,14 @@ @@ -202,7 +202,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_mariopantssensor.js.html b/docs/devices_mariopantssensor.js.html index a3b2c01..5583170 100644 --- a/docs/devices_mariopantssensor.js.html +++ b/docs/devices_mariopantssensor.js.html @@ -33,14 +33,14 @@ @@ -178,7 +178,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_mediumlinearmotor.js.html b/docs/devices_mediumlinearmotor.js.html index 2848fad..91c362d 100644 --- a/docs/devices_mediumlinearmotor.js.html +++ b/docs/devices_mediumlinearmotor.js.html @@ -33,14 +33,14 @@ @@ -156,7 +156,7 @@ exports.MediumLinearMotor = MediumLinearMotor; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_motionsensor.js.html b/docs/devices_motionsensor.js.html index c7bab56..cfb595d 100644 --- a/docs/devices_motionsensor.js.html +++ b/docs/devices_motionsensor.js.html @@ -33,14 +33,14 @@ @@ -182,7 +182,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_movehubmediumlinearmotor.js.html b/docs/devices_movehubmediumlinearmotor.js.html index e816afd..2253090 100644 --- a/docs/devices_movehubmediumlinearmotor.js.html +++ b/docs/devices_movehubmediumlinearmotor.js.html @@ -33,14 +33,14 @@ @@ -156,7 +156,7 @@ exports.MoveHubMediumLinearMotor = MoveHubMediumLinearMotor; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_movehubtiltsensor.js.html b/docs/devices_movehubtiltsensor.js.html index 7164e35..3dfdea8 100644 --- a/docs/devices_movehubtiltsensor.js.html +++ b/docs/devices_movehubtiltsensor.js.html @@ -33,14 +33,14 @@ @@ -180,7 +180,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_piezobuzzer.js.html b/docs/devices_piezobuzzer.js.html index 8ad3d2d..17f3ec4 100644 --- a/docs/devices_piezobuzzer.js.html +++ b/docs/devices_piezobuzzer.js.html @@ -33,14 +33,14 @@ @@ -172,7 +172,7 @@ exports.PiezoBuzzer = PiezoBuzzer; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_remotecontrolbutton.js.html b/docs/devices_remotecontrolbutton.js.html index e3d6fad..dda9ddf 100644 --- a/docs/devices_remotecontrolbutton.js.html +++ b/docs/devices_remotecontrolbutton.js.html @@ -33,14 +33,14 @@ @@ -184,7 +184,7 @@ exports.ButtonState = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_simplemediumlinearmotor.js.html b/docs/devices_simplemediumlinearmotor.js.html index de9f261..7a7cfcf 100644 --- a/docs/devices_simplemediumlinearmotor.js.html +++ b/docs/devices_simplemediumlinearmotor.js.html @@ -33,14 +33,14 @@ @@ -156,7 +156,7 @@ exports.SimpleMediumLinearMotor = SimpleMediumLinearMotor; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_tachomotor.js.html b/docs/devices_tachomotor.js.html index 61b66f3..d6c8677 100644 --- a/docs/devices_tachomotor.js.html +++ b/docs/devices_tachomotor.js.html @@ -33,14 +33,14 @@ @@ -313,7 +313,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_techniccolorsensor.js.html b/docs/devices_techniccolorsensor.js.html index 4c1c0c7..b07113d 100644 --- a/docs/devices_techniccolorsensor.js.html +++ b/docs/devices_techniccolorsensor.js.html @@ -33,14 +33,14 @@ @@ -215,7 +215,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_technicdistancesensor.js.html b/docs/devices_technicdistancesensor.js.html index 79c3f99..fa6fd27 100644 --- a/docs/devices_technicdistancesensor.js.html +++ b/docs/devices_technicdistancesensor.js.html @@ -33,14 +33,14 @@ @@ -202,7 +202,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_technicforcesensor.js.html b/docs/devices_technicforcesensor.js.html index add4968..723457b 100644 --- a/docs/devices_technicforcesensor.js.html +++ b/docs/devices_technicforcesensor.js.html @@ -33,14 +33,14 @@ @@ -202,7 +202,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_techniclargeangularmotor.js.html b/docs/devices_techniclargeangularmotor.js.html index 40858b5..cacf47a 100644 --- a/docs/devices_techniclargeangularmotor.js.html +++ b/docs/devices_techniclargeangularmotor.js.html @@ -33,14 +33,14 @@ @@ -156,7 +156,7 @@ exports.TechnicLargeAngularMotor = TechnicLargeAngularMotor; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_techniclargelinearmotor.js.html b/docs/devices_techniclargelinearmotor.js.html index 3f14453..b517196 100644 --- a/docs/devices_techniclargelinearmotor.js.html +++ b/docs/devices_techniclargelinearmotor.js.html @@ -33,14 +33,14 @@ @@ -156,7 +156,7 @@ exports.TechnicLargeLinearMotor = TechnicLargeLinearMotor; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_technicmediumangularmotor.js.html b/docs/devices_technicmediumangularmotor.js.html index f4d0408..dafe34e 100644 --- a/docs/devices_technicmediumangularmotor.js.html +++ b/docs/devices_technicmediumangularmotor.js.html @@ -33,14 +33,14 @@ @@ -156,7 +156,7 @@ exports.TechnicMediumAngularMotor = TechnicMediumAngularMotor; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_technicmediumhubaccelerometersensor.js.html b/docs/devices_technicmediumhubaccelerometersensor.js.html index f0a6639..5d9661e 100644 --- a/docs/devices_technicmediumhubaccelerometersensor.js.html +++ b/docs/devices_technicmediumhubaccelerometersensor.js.html @@ -33,14 +33,14 @@ @@ -182,7 +182,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_technicmediumhubgyrosensor.js.html b/docs/devices_technicmediumhubgyrosensor.js.html index 72fd107..7e9e8e9 100644 --- a/docs/devices_technicmediumhubgyrosensor.js.html +++ b/docs/devices_technicmediumhubgyrosensor.js.html @@ -33,14 +33,14 @@ @@ -182,7 +182,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_technicmediumhubtiltsensor.js.html b/docs/devices_technicmediumhubtiltsensor.js.html index 93cad77..7401068 100644 --- a/docs/devices_technicmediumhubtiltsensor.js.html +++ b/docs/devices_technicmediumhubtiltsensor.js.html @@ -33,14 +33,14 @@ @@ -182,7 +182,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_technicxlargelinearmotor.js.html b/docs/devices_technicxlargelinearmotor.js.html index 5c59c0b..e84e309 100644 --- a/docs/devices_technicxlargelinearmotor.js.html +++ b/docs/devices_technicxlargelinearmotor.js.html @@ -33,14 +33,14 @@ @@ -156,7 +156,7 @@ exports.TechnicXLargeLinearMotor = TechnicXLargeLinearMotor; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_tiltsensor.js.html b/docs/devices_tiltsensor.js.html index adf0516..dda3200 100644 --- a/docs/devices_tiltsensor.js.html +++ b/docs/devices_tiltsensor.js.html @@ -33,14 +33,14 @@ @@ -180,7 +180,7 @@ exports.ModeMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_trainmotor.js.html b/docs/devices_trainmotor.js.html index f68d456..c7c4eec 100644 --- a/docs/devices_trainmotor.js.html +++ b/docs/devices_trainmotor.js.html @@ -33,14 +33,14 @@ @@ -156,7 +156,7 @@ exports.TrainMotor = TrainMotor; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/devices_voltagesensor.js.html b/docs/devices_voltagesensor.js.html index 5189233..17f35b7 100644 --- a/docs/devices_voltagesensor.js.html +++ b/docs/devices_voltagesensor.js.html @@ -33,14 +33,14 @@ @@ -203,7 +203,7 @@ const MaxVoltageRaw = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/hubs_basehub.js.html b/docs/hubs_basehub.js.html index b0c958c..41c19b9 100644 --- a/docs/hubs_basehub.js.html +++ b/docs/hubs_basehub.js.html @@ -33,14 +33,14 @@ @@ -109,6 +109,7 @@ const duplotrainbasespeaker_1 = require("../devices/duplotrainbasespeaker"); const duplotrainbasespeedometer_1 = require("../devices/duplotrainbasespeedometer"); const hubled_1 = require("../devices/hubled"); const light_1 = require("../devices/light"); +const marioaccelerometer_1 = require("../devices/marioaccelerometer"); const mariobarcodesensor_1 = require("../devices/mariobarcodesensor"); const mariopantssensor_1 = require("../devices/mariopantssensor"); const mediumlinearmotor_1 = require("../devices/mediumlinearmotor"); @@ -453,6 +454,7 @@ class BaseHub extends events_1.EventEmitter { [Consts.DeviceType.DUPLO_TRAIN_BASE_MOTOR]: duplotrainbasemotor_1.DuploTrainBaseMotor, [Consts.DeviceType.DUPLO_TRAIN_BASE_SPEAKER]: duplotrainbasespeaker_1.DuploTrainBaseSpeaker, [Consts.DeviceType.DUPLO_TRAIN_BASE_SPEEDOMETER]: duplotrainbasespeedometer_1.DuploTrainBaseSpeedometer, + [Consts.DeviceType.MARIO_ACCELEROMETER]: marioaccelerometer_1.MarioAccelerometer, [Consts.DeviceType.MARIO_BARCODE_SENSOR]: mariobarcodesensor_1.MarioBarcodeSensor, [Consts.DeviceType.MARIO_PANTS_SENSOR]: mariopantssensor_1.MarioPantsSensor, }; @@ -514,7 +516,7 @@ exports.BaseHub = BaseHub; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/hubs_boostmovehub.js.html b/docs/hubs_boostmovehub.js.html index 06a1d81..7407d47 100644 --- a/docs/hubs_boostmovehub.js.html +++ b/docs/hubs_boostmovehub.js.html @@ -33,14 +33,14 @@ @@ -182,7 +182,7 @@ exports.BoostMoveHub = BoostMoveHub; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/hubs_controlplushub.js.html b/docs/hubs_controlplushub.js.html index 0d5d00d..dd41ddd 100644 --- a/docs/hubs_controlplushub.js.html +++ b/docs/hubs_controlplushub.js.html @@ -33,14 +33,14 @@ @@ -179,7 +179,7 @@ exports.ControlPlusHub = ControlPlusHub; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/hubs_duplotrainbase.js.html b/docs/hubs_duplotrainbase.js.html index acef827..5989f46 100644 --- a/docs/hubs_duplotrainbase.js.html +++ b/docs/hubs_duplotrainbase.js.html @@ -33,14 +33,14 @@ @@ -179,7 +179,7 @@ exports.PortMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/hubs_hub.js.html b/docs/hubs_hub.js.html index 13a18d5..441a083 100644 --- a/docs/hubs_hub.js.html +++ b/docs/hubs_hub.js.html @@ -33,14 +33,14 @@ @@ -191,7 +191,7 @@ exports.PortMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/hubs_lpf2hub.js.html b/docs/hubs_lpf2hub.js.html index 3f14eb3..fba361b 100644 --- a/docs/hubs_lpf2hub.js.html +++ b/docs/hubs_lpf2hub.js.html @@ -33,14 +33,14 @@ @@ -460,7 +460,7 @@ exports.LPF2Hub = LPF2Hub; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/hubs_mario.js.html b/docs/hubs_mario.js.html index a17ba51..13d0567 100644 --- a/docs/hubs_mario.js.html +++ b/docs/hubs_mario.js.html @@ -33,14 +33,14 @@ @@ -175,7 +175,7 @@ exports.PortMap = {}; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/hubs_movehub.js.html b/docs/hubs_movehub.js.html index edfd9f4..7d51ab2 100644 --- a/docs/hubs_movehub.js.html +++ b/docs/hubs_movehub.js.html @@ -33,14 +33,14 @@ @@ -193,7 +193,7 @@ exports.PortMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/hubs_puphub.js.html b/docs/hubs_puphub.js.html index d7a14cf..90d7df8 100644 --- a/docs/hubs_puphub.js.html +++ b/docs/hubs_puphub.js.html @@ -33,14 +33,14 @@ @@ -179,7 +179,7 @@ exports.PUPHub = PUPHub; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/hubs_pupremote.js.html b/docs/hubs_pupremote.js.html index 2743b5e..826c4de 100644 --- a/docs/hubs_pupremote.js.html +++ b/docs/hubs_pupremote.js.html @@ -33,14 +33,14 @@ @@ -172,7 +172,7 @@ exports.PUPRemote = PUPRemote; Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/hubs_remotecontrol.js.html b/docs/hubs_remotecontrol.js.html index 02ff530..deee259 100644 --- a/docs/hubs_remotecontrol.js.html +++ b/docs/hubs_remotecontrol.js.html @@ -33,14 +33,14 @@ @@ -181,7 +181,7 @@ exports.PortMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/hubs_technicmediumhub.js.html b/docs/hubs_technicmediumhub.js.html index 0f8fbf8..f58e377 100644 --- a/docs/hubs_technicmediumhub.js.html +++ b/docs/hubs_technicmediumhub.js.html @@ -33,14 +33,14 @@ @@ -186,7 +186,7 @@ exports.PortMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/hubs_wedo2smarthub.js.html b/docs/hubs_wedo2smarthub.js.html index 9e2f229..da10ed5 100644 --- a/docs/hubs_wedo2smarthub.js.html +++ b/docs/hubs_wedo2smarthub.js.html @@ -33,14 +33,14 @@ @@ -332,7 +332,7 @@ exports.PortMap = { Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/index.html b/docs/index.html index 79fa02e..20ae92c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -33,14 +33,14 @@ @@ -430,7 +430,7 @@ console.log("Scanning for Hubs..."); Documentation generated by JSDoc 3.6.6 - on Tue Dec 22nd 2020 + on Wed Dec 23rd 2020 using the DocStrap template. diff --git a/docs/quicksearch.html b/docs/quicksearch.html index 471e8b3..cc1d949 100644 --- a/docs/quicksearch.html +++ b/docs/quicksearch.html @@ -7,7 +7,7 @@