diff --git a/.gitignore b/.gitignore index 27243c4..9f910a7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ node_modules/ dist/ +jsdoc-template/ .vscode/ *.tgz **/.DS_store diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..705237c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "jsdoc-template/braintree"] + path = jsdoc-template/braintree + url = git@github.com:braintree/jsdoc-template.git diff --git a/docs/AbsoluteMotor.html b/docs/AbsoluteMotor.html index 17c3eb1..e42a241 100644 --- a/docs/AbsoluteMotor.html +++ b/docs/AbsoluteMotor.html @@ -1,2222 +1,2037 @@ - - - - node-poweredup Class: AbsoluteMotor - - + + - + + AbsoluteMotor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - - - -
-
- - -
- -
- - -

Class: AbsoluteMotor

-
- -
- -

- AbsoluteMotor -

- - -
- - -
-
- - -
-
-

new AbsoluteMotor()

- - -
-
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - -
- - -

Extends

- - + + + + + + +
+ +

+ AbsoluteMotor +

+ + +
+
+

+ + AbsoluteMotor + +

+ +
- +
+
+ + - - -

Methods

+ -
- -
-
-

gotoAngle(angle [, speed])

- - -
-
+ + + + + + +

+ new AbsoluteMotor() +

+
- -
-

Rotate a motor by a given angle.

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

Extends

+ + + + + + + + + -
Parameters:
+ + + + +

Methods

+ + - - + + + + + + + + + +

+ gotoAngle(angle, speedopt) → {Promise} +

+
+ + + + + +
+

Rotate a motor by a given angle.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - - - - - - + + number + - - - - - - - - - - - - + + - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
NameTypeTypeArgumentAttributesDefaultDescription
angleDescription
+ - angle - - -number - - - - - - - - - - - - -

Absolute position the motor should go to (degrees from 0).

speed - - -number + + - - <optional>
- - - - - -
- - - 100 - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ + +

Absolute position the motor should go to (degrees from 0).

+ +
speed + + + + number + + + + + + + + + <optional>
+ + + + + +
+ + 100 + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

gotoRealZero( [speed])

- - -
-
+ - -
-

Rotate motor to real zero position.

+ + + + + + +

+ gotoRealZero(speedopt) → {Promise} +

+
+ + + + + +
+

Rotate motor to real zero position.

Real zero is marked on Technic angular motors (SPIKE Prime). It is also available on Technic linear motors (Control+) but is unmarked.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - + - + + + + + + - - - - - - + <optional>
- - - - + + + + + + + + + + - +
NameTypeTypeArgumentAttributesDefaultDescription
speedDescription
+ + + + number + -
- speed - - -number - - - - - - - <optional>
- - - - - -
- - 100 - -

Speed between 1 - 100. Note that this will always take the shortest path to zero.

+ + 100 + + +

Speed between 1 - 100. Note that this will always take the shortest path to zero.

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

resetZero()

- - -
-
+ + + + + + + + +

+ resetZero() → {Promise} +

+
+ + + + + +
+

Reset zero to current position

+
+ + + + + - -
-

Reset zero to current position

-
- - - - - -
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

rotateByDegrees(degrees [, speed])

- - -
-
+ - -
-

Rotate a motor by a given amount of degrees.

-
- + + + + + + +

+ rotateByDegrees(degrees, speedopt) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Rotate a motor by a given amount of degrees.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - - - - - - + + number + - - - - - - - - - - - - + + - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
NameTypeTypeArgumentAttributesDefaultDescription
degreesDescription
+ - degrees - - -number - - - - - - - - - - - - -

How much the motor should be rotated (in degrees).

speed - - -number + + - - <optional>
- - - - - -
- - - 100 - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ + +

How much the motor should be rotated (in degrees).

+ +
speed + + + + number + + + + + + + + + <optional>
+ + + + + +
+ + 100 + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setAccelerationTime(time)

- - -
-
+ - -
-

Set the global acceleration time

-
- + + + + + + +

+ setAccelerationTime(time) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the global acceleration time

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
time + + + + number + -
time - - -number + +

How long acceleration should last (in milliseconds).

+

How long acceleration should last (in milliseconds).

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setBrakingStyle(style)

- - -
-
+ - -
-

Set the braking style of the motor.

+ + + + + + +

+ setBrakingStyle(style) +

+
+ + + + + +
+

Set the braking style of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setDecelerationTime(time)

- - -
-
- - -
-

Set the global deceleration time

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
time - - -number - - - - -

How long deceleration should last (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +

+ setDecelerationTime(time) → {Promise} +

+
+ + + + + +
+

Set the global deceleration time

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + +
NameTypeDescription
time + -
-
-

setMaxPower(style)

- - -
-
+ + number + -
-

Set the max power of the motor.

+ + + +
+

How long deceleration should last (in milliseconds).

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

+ setMaxPower(style) +

+
+ + + + + +
+

Set the max power of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setSpeed(speed, time)

- - -
-
- - -
-

Set the motor speed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
speed - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

time - - -number - - - - -

How long the motor should run for (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - + - + + + + + + +

+ setSpeed(speed, time) → {Promise} +

+
- -

Events

- -
- -
-
-

absolute

- - -
-
- - -
-

Emits when a the motors absolute position is changed.

-
- - - - - -
Type: -object + -
- - - -
Parameters:
- +
+

Set the motor speed.

+
- - + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
speed + + + + number + -
absolute - - -number + +
+

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
time + + + + number + + + + + + + +

How long the motor should run for (in milliseconds).

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

Events

- - - - - - - -
- - - -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
+ - - + + + + + + + + + +

+ absolute :object +

+
+ + + + + +
+

Emits when a the motors absolute position is changed.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
absolute + + + + number + -
rotation - - -number + +
+ + +
- - + + +
- - + - + - -
Inherited From:
-
- -
- + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
+ + + + + + + + + + + + + + + + + + + + + + + + +

+ rotate :object +

+
+ + + + + +
+

Emits when a rotation sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rotation + + + + number + - + + + + + +
+ + + + +
+ + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + - - - - -
- -
- -
- +
-
-
+
-
+
- -
- -
- + -
- - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/BaseHub.html b/docs/BaseHub.html index fe0ce37..b863014 100644 --- a/docs/BaseHub.html +++ b/docs/BaseHub.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: BaseHub - - + + - + + BaseHub - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: BaseHub

-
+ + +
+ +

BaseHub -

- + - + -
+
+
+ +

+ + BaseHub + +

+ + + +
+ +
- + -
-
-

new BaseHub()

- - -
-
- - + + + + + + + + +

+ new BaseHub() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + -
    -
  • EventEmitter
  • -
+
    +
  • EventEmitter
  • +
@@ -191,1085 +207,1103 @@ - +

Members

-
+ -
-
-

<readonly> batteryLevel

- -
-
- +

+ (readonly) batteryLevel +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
batteryLevel - - -number - - - - -

Battery level of the hub (Percentage between 0-100)

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> firmwareVersion

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NamebatteryLevelType + + + + number + + + + + + + Description +

Battery level of the hub (Percentage between 0-100)

+
firmwareVersion - - -string - - - - -

Firmware version of the hub

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - -
- - - -
- - - -
-
-

<readonly> hardwareVersion

- - -
-
- - - - -
- -
Properties:
+ -
+ - - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) firmwareVersion +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
hardwareVersion
firmwareVersion - - -string - - - - -

Hardware version of the hub

-
+ + + + + string + - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> name

+ + + + + + + +

Firmware version of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) hardwareVersion +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
name
hardwareVersion - - -string - - - - -

Name of the hub

-
+ + + + + string + - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> ports

+ + + + + + + +

Hardware version of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) name +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
ports
name - - -Array.<string> - - - - -

Array of port names

-
+ + + + + string + - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> primaryMACAddress

+ + + + + + + +

Name of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) ports +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
primaryMACAddress
ports - - -string - - - - -

Primary MAC address of the hub

-
+ + + + + Array.<string> + - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> rssi

+ + + + + + + +

Array of port names

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) primaryMACAddress +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
rssi
primaryMACAddress - - -number - - - - -

Signal strength of the hub

-
+ + + + + string + - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> type

+ + + + + + + +

Primary MAC address of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) rssi +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
type
rssi - - -string - - - - -

Hub type

-
+ + + + + number + - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> uuid

+ + + + + + + +

Signal strength of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) type +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
uuid
type - - -string - - - - -

UUID of the hub

+ + + + string + -
+

Hub type

+
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - +
- + - + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- -
-
+ + + + + + + +

+ (readonly) uuid +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
uuid + + + + string + + + + + + + +

UUID of the hub

+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1277,143 +1311,24 @@ -
- +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/BasicMotor.html b/docs/BasicMotor.html index 753c786..a21cfee 100644 --- a/docs/BasicMotor.html +++ b/docs/BasicMotor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: BasicMotor - - + + - + + BasicMotor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: BasicMotor

-
+ + +
+ +

BasicMotor -

- + - + -
+
+
+ +

+ + BasicMotor + +

+ + + +
+ +
- + -
-
-

new BasicMotor()

- - -
-
- - + + + + + + + + +

+ new BasicMotor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1526 +207,1355 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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:
-
- -
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-
-

brake()

- - -
-
- - -
-

Brake the motor.

-
- - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

rampPower(fromPower, toPower, time)

- - -
-
- -
-

Ramp the motor power.

-
- +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeTypeDescriptionDescription
fromPower
hub - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ + + + Hub + -
toPower - - -number + + +

The Hub the device is attached to.

+

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

time - - -number - - - - -

How long the ramp should last (in milliseconds).

- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

setPower(power)

- - -
-
- -
-

Set the motor power.

-
- +

+ (readonly) isVirtualPort +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
power
isVirtualPort - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ + + + boolean + -
+

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

+
- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

stop()

- - -
-
+

+ (readonly) mode +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + -
-

Stop the motor.

-
- + + + + + + + + + + + + + + + + + +
NameTypeDescription
mode + + + + number + - - - + + +

The mode the device is currently in

+
+ + + -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
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:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ brake() → {Promise} +

+
+ + + + + +
+

Brake the motor.

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

+ rampPower(fromPower, toPower, time) → {Promise} +

+
+ + + + + +
+

Ramp the motor power.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
fromPower + + + + number + + + + + + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
toPower + + + + number + + + + + + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
time + + + + number + + + + + + + +

How long the ramp should last (in milliseconds).

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

+ setPower(power) → {Promise} +

+
+ + + + + +
+

Set the motor power.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
power + + + + number + + + + + + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

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

+ stop() → {Promise} +

+
+ + + + + +
+

Stop the motor.

+
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/ColorDistanceSensor.html b/docs/ColorDistanceSensor.html index 346c5bf..b72a85c 100644 --- a/docs/ColorDistanceSensor.html +++ b/docs/ColorDistanceSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: ColorDistanceSensor - - + + - + + ColorDistanceSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: ColorDistanceSensor

-
+ + +
+ +

ColorDistanceSensor -

- + - + -
+
+
+ +

+ + ColorDistanceSensor + +

+ + + +
+ +
- + -
-
-

new ColorDistanceSensor()

- - -
-
- - + + + + + + + + +

+ new ColorDistanceSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,2298 +207,2142 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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:
-
- -
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-
-

sendPFIRMessage(message)

- - -
-
- - -
-

Send a raw Power Functions IR command

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
message - - -Buffer - - - - -

2 byte payload making up a Power Functions protocol command. NOTE: Only specify nibbles 1-3, nibble 4 should be zeroed.

- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

setColor(color)

- - -
-
- -
-

Set the color of the LED on the sensor via a color value.

-
- +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
color
hub - - -Color - - - - -
+ + + + Hub + -
+

The Hub the device is attached to.

+
- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

setPFExtendedChannel(channel)

+ +

+ (readonly) isVirtualPort +

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

Switches the IR receiver into extended channel mode. After setting this, use channels 5-8 instead of 1-4 for this receiver.

+ + + +
+

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:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ sendPFIRMessage(message) → {Promise} +

+
+ + + + + +
+

Send a raw Power Functions IR command

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
message + + + + Buffer + + + + + + + +

2 byte payload making up a Power Functions protocol command. NOTE: Only specify nibbles 1-3, nibble 4 should be zeroed.

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

+ setColor(color) → {Promise} +

+
+ + + + + +
+

Set the color of the LED on the sensor via a color value.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
color + + + + Color + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ setPFExtendedChannel(channel) → {Promise} +

+
+ + + + + +
+

Switches the IR receiver into extended channel mode. After setting this, use channels 5-8 instead of 1-4 for this receiver.

NOTE: Calling this with channel 5-8 with switch off extended channel mode for this receiver.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
channel + + + + number + -
channel - - -number + +

Channel number, between 1-8

+

Channel number, between 1-8

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - - - - -
-
-

setPFPower(channel, output, power)

- - -
-
+ - -
-

Set the power of a Power Functions motor via IR

-
- + + + + + + +

+ setPFPower(channel, output, power) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the power of a Power Functions motor via IR

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + number + - + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
channel
+ - channel - - -number - - - - -

Channel number, between 1-4

+

Channel number, between 1-4

+ +
output + - output - - -string - - - - -

Outport port, "RED" (A) or "BLUE" (B)

power - - -number + +

7 (full reverse) to 7 (full forward). 0 is stop. 8 is brake.

+

Outport port, "RED" (A) or "BLUE" (B)

+ +
power + + + + number + + + + + + + +

7 (full reverse) to 7 (full forward). 0 is stop. 8 is brake.

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

startPFMotors(channel, powerA, powerB)

- - -
-
+ - -
-

Start Power Functions motors running via IR

+ + + + + + +

+ startPFMotors(channel, powerA, powerB) → {Promise} +

+
+ + + + + +
+

Start Power Functions motors running via IR

NOTE: This command is designed for bang-bang style operation. To keep the motors running, the sensor needs to be within range of the IR receiver constantly.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + Buffer + - + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + Buffer + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
channel
+ - channel - - -Buffer - - - - -

Channel number, between 1-4

+

Channel number, between 1-4

+ +
powerA + - powerA - - -Buffer - - - - -

7 (full reverse) to 7 (full forward). 0 is stop. 8 is brake.

powerB - - -Buffer + +

7 (full reverse) to 7 (full forward). 0 is stop. 8 is brake.

+

7 (full reverse) to 7 (full forward). 0 is stop. 8 is brake.

+ +
powerB + + + + Buffer + + + + + + + +

7 (full reverse) to 7 (full forward). 0 is stop. 8 is brake.

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + +

Events

+ + - -
- - + - + + + + + + +

+ color :object +

+
- -

Events

- -
- -
-
-

color

- - -
-
- - -
-

Emits when a color sensor is activated.

-
- - - - - -
Type: -object + -
- - - -
Parameters:
- +
+

Emits when a color sensor is activated.

+
- - + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
color + + + + Color + -
color - - -Color + +
+ + +
- - + + +
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - - - - - - - -
- - - -
-
-

colorAndDistance

- - -
-
- - -
-

A combined color and distance event, emits when the sensor is activated.

-
- - - - - -
Type: -object -
- - - -
Parameters:
+ + + + + + + + + + - - + + + + + + + + + +

+ colorAndDistance :object +

+
+ + + + + +
+

A combined color and distance event, emits when the sensor is activated.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + Color + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
color
+ - color - - -Color - - - - -
distance - - -number + +

Distance, in millimeters.

+ + +
distance + + + + number + + + + + + + +

Distance, in millimeters.

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - - - - - - - -
- - - -
-
-

distance

- - -
-
- - -
-

Emits when a distance sensor is activated.

-
- - - - - -
Type: -object -
- - - -
Parameters:
+ + + + + + + + + + - - + + + + + + + + + +

+ distance :object +

+
+ + + + + +
+

Emits when a distance sensor is activated.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
distance + + + + number + -
distance - - -number + +

Distance, in millimeters.

+

Distance, in millimeters.

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
-
- - + + + + + + +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/CurrentSensor.html b/docs/CurrentSensor.html index 24a95e9..2eb9ecf 100644 --- a/docs/CurrentSensor.html +++ b/docs/CurrentSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: CurrentSensor - - + + - + + CurrentSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: CurrentSensor

-
+ + +
+ +

CurrentSensor -

- + - + -
+
+
+ +

+ + CurrentSensor + +

+ + + +
+ +
- + -
-
-

new CurrentSensor()

- - -
-
- - + + + + + + + + +

+ new CurrentSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,920 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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

- -
- -
-
-

current

- - -
-
- - -
-

Emits when a current change is detected.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
current - - -number - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1112,153 +1002,174 @@ +

Events

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

+ current :object +

+
+ + + + + +
+

Emits when a current change is detected.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + +
NameTypeDescription
current + + + + number + - + + + + + +
-
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/Device.html b/docs/Device.html index 4e57b4d..b884bbb 100644 --- a/docs/Device.html +++ b/docs/Device.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: Device - - + + - + + Device - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: Device

-
+ + +
+ +

Device -

- + - + -
+
+
+ +

+ + Device + +

+ + + +
+ +
- + -
-
-

new Device()

- - -
-
- - + + + + + + + + +

+ new Device() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + -
    -
  • EventEmitter
  • -
+
    +
  • EventEmitter
  • +
@@ -191,728 +207,740 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
hub - - -Hub - - - - -

The Hub the device is attached to.

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - -
- - - -
- - - -
-
-

<readonly> isVirtualPort

- - -
-
- - - - -
- -
Properties:
+ -
+ - - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) hub +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
isVirtualPort
hub - - -boolean - - - - -

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

-
+ + + + + Hub + - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> mode

+ + + + + + + +

The Hub the device is attached to.

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) isVirtualPort +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
mode
isVirtualPort - - -number - - - - -

The mode the device is currently in

-
+ + + + + boolean + - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> portName

+ + + + + + + +

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

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) mode +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
portName
mode - - -string - - - - -

The port the device is attached to.

-
+ + + + + number + - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> type

+ + + + + + + +

The mode the device is currently in

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) portName +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
type
portName - - -number - - - - -

The type of the device

+ + + + string + -
+

The port the device is attached to.

+
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - +
- + - + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- -
-
+ + + + + + + +

+ (readonly) type +

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

The type of the device

+
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -920,143 +948,24 @@ -
- +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/DuploTrainBase.html b/docs/DuploTrainBase.html index f9cb8ae..4b53d0f 100644 --- a/docs/DuploTrainBase.html +++ b/docs/DuploTrainBase.html @@ -1,194 +1,210 @@ - - - - node-poweredup Class: DuploTrainBase - - + + - + + DuploTrainBase - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: DuploTrainBase

-
+ + +
+ +

DuploTrainBase -

- + - + -
+
+
+ +

+ + DuploTrainBase + +

+ + + +
+ +
- + -
-
-

new DuploTrainBase()

- - -
-
- -
-

The DuploTrainBase is emitted if the discovered device is a Duplo Train Base.

-
- - + + + + + + + + +

+ new DuploTrainBase() +

+
+ + + + + +
+

The DuploTrainBase is emitted if the discovered device is a Duplo Train Base.

+
+ + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -197,1977 +213,1841 @@ - +

Members

-
+ -
-
-

<readonly> batteryLevel

- -
-
- +

+ (readonly) batteryLevel +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
batteryLevel - - -number - - - - -

Battery level of the hub (Percentage between 0-100)

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> firmwareVersion

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NamebatteryLevelType + + + + number + + + + + + + Description +

Battery level of the hub (Percentage between 0-100)

+
firmwareVersion - - -string - - - - -

Firmware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - -
- - - -
- - - -
-
-

<readonly> hardwareVersion

- - -
-
- - - - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) firmwareVersion +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
hardwareVersion
firmwareVersion - - -string - - - - -

Hardware version of the hub

-
+ + + + + string + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> name

+ + + + + + + +

Firmware version of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) hardwareVersion +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
name
hardwareVersion - - -string - - - - -

Name of the hub

-
+ + + + + string + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> ports

+ + + + + + + +

Hardware version of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) name +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
ports
name - - -Array.<string> - - - - -

Array of port names

-
+ + + + + string + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> primaryMACAddress

+ + + + + + + +

Name of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) ports +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
primaryMACAddress
ports - - -string - - - - -

Primary MAC address of the hub

-
+ + + + + Array.<string> + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> rssi

+ + + + + + + +

Array of port names

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) primaryMACAddress +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
rssi
primaryMACAddress - - -number - - - - -

Signal strength of the hub

-
+ + + + + string + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> type

+ + + + + + + +

Primary MAC address of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) rssi +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
type
rssi - - -string - - - - -

Hub type

-
+ + + + + number + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> uuid

+ + + + + + + +

Signal strength of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) type +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
uuid
type - - -string - - - - -

UUID of the hub

+ + + + string + -
+

Hub type

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

Methods

-
+ + + -
-
-

createVirtualPort(firstPortName, secondPortName)

+ +

+ (readonly) uuid +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - - -
+ +
+ + + + + + + + + + + + + + + +
NameTypeDescription
uuid + + + + string + -
-

Combines two ports with into a single virtual port.

+ + + +
+

UUID of the hub

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

Methods

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

+ createVirtualPort(firstPortName, secondPortName) → {Promise} +

+
+ + + + + +
+

Combines two ports with into a single virtual port.

Note: The devices attached to the ports must be of the same device type.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
firstPortName
+ - firstPortName - - -string - - - - -

First port name

secondPortName - - -string + +

Second port name

+

First port name

+ +
secondPortName + + + + string + + + + + + + +

Second port name

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - - - - -
-
-

setName(name)

- - -
-
+ - -
-

Set the name of the Hub.

-
- + + + + + + +

+ setName(name) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the name of the Hub.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
name + + + + string + -
name - - -string + +

New name of the hub (14 characters or less, ASCII only).

+

New name of the hub (14 characters or less, ASCII only).

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

shutdown()

- - -
-
+ + + + + + + + +

+ shutdown() → {Promise} +

+
+ + + + + +
+

Shutdown the Hub.

+
+ + + + + - -
-

Shutdown the Hub.

-
- - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful disconnect.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + +

Events

+ + - -
- - + - + + + + + + +

+ button +

+
- -

Events

+ -
- -
-
-

button

- - -
-
- -
-

Emits when a button is pressed.

-
- - +
+

Emits when a button is pressed.

+
- - - -
Parameters:
- - - + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
button
+ - button - - -string - - - - -
state - - -ButtonState + +
+ + +
state + + + + ButtonState + + + + + + + + + +
- - + + +
- - + - + - -
Inherited From:
-
- -
- + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
-
- - + + + + + + +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/DuploTrainBaseColorSensor.html b/docs/DuploTrainBaseColorSensor.html index c983960..bd1eaf7 100644 --- a/docs/DuploTrainBaseColorSensor.html +++ b/docs/DuploTrainBaseColorSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: DuploTrainBaseColorSensor - - + + - + + DuploTrainBaseColorSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: DuploTrainBaseColorSensor

-
+ + +
+ +

DuploTrainBaseColorSensor -

- + - + -
+
+
+ +

+ + DuploTrainBaseColorSensor + +

+ + + +
+ +
- + -
-
-

new DuploTrainBaseColorSensor()

- - -
-
- - + + + + + + + + +

+ new DuploTrainBaseColorSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1400 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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

- -
- -
-
-

color

- - -
-
- - -
-

Emits when a color sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
color - - -Color - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - - - - -
+ -
-
-

intensity

- - -
-
- -
-

Emits when intensity of the color/light changes.

-
- - - - - -
Type: -object +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
intensity
hub - - -number - - - - -
+ + + + Hub + -
+

The Hub the device is attached to.

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

reflect

- - -
-
- -
-

Emits when the light reflectivity changes.

-
- - - - - -
Type: -object +

+ (readonly) isVirtualPort +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
reflect
isVirtualPort - - -number - - - - -

Percentage, from 0 to 100.

+ + + + boolean + -
+

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

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

rgb

- - -
-
- -
-

Emits when the light reflectivity changes.

-
- - - - - -
Type: -object +

+ (readonly) mode +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeTypeDescriptionDescription
red
mode - - -number - - - - -
+ + + + number + -
green - - -number + + +

The mode the device is currently in

+
blue - - -number - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1592,153 +1002,670 @@ +

Events

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

+ color :object +

+
+ + + + + +
+

Emits when a color sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + +
NameTypeDescription
color + + + + Color + - + + + + + +
-
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ intensity :object +

+
+ + + + + +
+

Emits when intensity of the color/light changes.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + +
NameTypeDescription
intensity + + + + number + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ reflect :object +

+
+ + + + + +
+

Emits when the light reflectivity changes.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
reflect + + + + number + + + + + + + +

Percentage, from 0 to 100.

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

+ rgb :object +

+
+ + + + + +
+

Emits when the light reflectivity changes.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
red + + + + number + + + + + + + + + +
green + + + + number + + + + + + + + + +
blue + + + + number + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
-
- + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/DuploTrainBaseMotor.html b/docs/DuploTrainBaseMotor.html index b80dfb0..a519bb1 100644 --- a/docs/DuploTrainBaseMotor.html +++ b/docs/DuploTrainBaseMotor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: DuploTrainBaseMotor - - + + - + + DuploTrainBaseMotor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: DuploTrainBaseMotor

-
+ + +
+ +

DuploTrainBaseMotor -

- + - + -
+
+
+ +

+ + DuploTrainBaseMotor + +

+ + + +
+ +
- + -
-
-

new DuploTrainBaseMotor()

- - -
-
- - + + + + + + + + +

+ new DuploTrainBaseMotor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1562 +207,1391 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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:
-
- -
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-
-

brake()

- - -
-
- - -
-

Brake the motor.

-
- - - - - - - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

rampPower(fromPower, toPower, time)

- - -
-
- -
-

Ramp the motor power.

-
- +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeTypeDescriptionDescription
fromPower
hub - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ + + + Hub + -
toPower - - -number + + +

The Hub the device is attached to.

+

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

time - - -number - - - - -

How long the ramp should last (in milliseconds).

- - + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

setPower(power)

- - -
-
- -
-

Set the motor power.

-
- +

+ (readonly) isVirtualPort +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
power
isVirtualPort - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ + + + boolean + -
+

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

+
- - + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

stop()

- - -
-
+

+ (readonly) mode +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + -
-

Stop the motor.

-
- + + + + + + + + + + + + + + + + + +
NameTypeDescription
mode + + + + number + - - - + + +

The mode the device is currently in

+
+ + + -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
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:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ brake() → {Promise} +

+
+ + + + + +
+

Brake the motor.

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

+ rampPower(fromPower, toPower, time) → {Promise} +

+
+ + + + + +
+

Ramp the motor power.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
fromPower + + + + number + + + + + + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
toPower + + + + number + + + + + + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
time + + + + number + + + + + + + +

How long the ramp should last (in milliseconds).

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

+ setPower(power) → {Promise} +

+
+ + + + + +
+

Set the motor power.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
power + + + + number + + + + + + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

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

+ stop() → {Promise} +

+
+ + + + + +
+

Stop the motor.

+
+ + + + + + + + + + +
+ + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/DuploTrainBaseSpeaker.html b/docs/DuploTrainBaseSpeaker.html index d2a9ded..6204437 100644 --- a/docs/DuploTrainBaseSpeaker.html +++ b/docs/DuploTrainBaseSpeaker.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: DuploTrainBaseSpeaker - - + + - + + DuploTrainBaseSpeaker - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: DuploTrainBaseSpeaker

-
+ + +
+ +

DuploTrainBaseSpeaker -

- + - + -
+
+
+ +

+ + DuploTrainBaseSpeaker + +

+ + + +
+ +
- + -
-
-

new DuploTrainBaseSpeaker()

- - -
-
- - + + + + + + + + +

+ new DuploTrainBaseSpeaker() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1254 +207,1115 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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:
-
- -
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-
-

playSound(sound)

- - -
-
- - -
-

Play a built-in train sound.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
sound - - -DuploTrainBaseSound - - - - -
- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

playTone(tone)

- - -
-
- -
-

Play a built-in system tone.

-
- +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
tone
hub - - -number - - - - -
+ + + + Hub + -
+

The Hub the device is attached to.

+
- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
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:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ playSound(sound) → {Promise} +

+
+ + + + + +
+

Play a built-in train sound.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
sound + + + + DuploTrainBaseSound + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ playTone(tone) → {Promise} +

+
+ + + + + +
+

Play a built-in system tone.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
tone + + + + number + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/DuploTraniBaseSpeedometer.html b/docs/DuploTraniBaseSpeedometer.html index edbc5e6..c0652f1 100644 --- a/docs/DuploTraniBaseSpeedometer.html +++ b/docs/DuploTraniBaseSpeedometer.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: DuploTraniBaseSpeedometer - - + + - + + DuploTraniBaseSpeedometer - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: DuploTraniBaseSpeedometer

-
+ + +
+ +

DuploTraniBaseSpeedometer -

- + - + -
+
+
+ +

+ + DuploTraniBaseSpeedometer + +

+ + + +
+ +
- + -
-
-

new DuploTraniBaseSpeedometer()

- - -
-
- - + + + + + + + + +

+ new DuploTraniBaseSpeedometer() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,782 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
hub - - -Hub - - - - -

The Hub the device is attached to.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - -
- - - -
- - - -
-
-

<readonly> isVirtualPort

- - -
-
- - - - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) hub +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
isVirtualPort
hub - - -boolean - - - - -

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

-
+ + + + + Hub + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> mode

+ + + + + + + +

The Hub the device is attached to.

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) isVirtualPort +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
mode
isVirtualPort - - -number - - - - -

The mode the device is currently in

-
+ + + + + boolean + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> portName

+ + + + + + + +

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

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) mode +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
portName
mode - - -string - - - - -

The port the device is attached to.

-
+ + + + + number + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> type

+ + + + + + + +

The mode the device is currently in

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) portName +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
type
portName - - -number - - - - -

The type of the device

+ + + + string + -
+

The port the device is attached to.

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

+ (readonly) type +

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

The type of the device

+
+ + + + +
+ + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -974,143 +1002,24 @@ -
- +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/Hub.html b/docs/Hub.html index 565d748..051afa4 100644 --- a/docs/Hub.html +++ b/docs/Hub.html @@ -1,194 +1,210 @@ - - - - node-poweredup Class: Hub - - + + - + + Hub - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: Hub

-
+ + +
+ +

Hub -

- + - + -
+
+
+ +

+ + Hub + +

+ + + +
+ +
- + -
-
-

new Hub()

- - -
-
- -
-

The Hub is emitted if the discovered device is a Hub.

-
- - + + + + + + + + +

+ new Hub() +

+
+ + + + + +
+

The Hub is emitted if the discovered device is a Hub.

+
+ + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -197,3656 +213,3377 @@ - +

Members

-
+ -
-
-

<readonly> batteryLevel

- -
-
- +

+ (readonly) batteryLevel +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
batteryLevel - - -number - - - - -

Battery level of the hub (Percentage between 0-100)

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> firmwareVersion

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NamebatteryLevelType + + + + number + + + + + + + Description +

Battery level of the hub (Percentage between 0-100)

+
firmwareVersion - - -string - - - - -

Firmware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - -
- - - -
- - - -
-
-

<readonly> hardwareVersion

- - -
-
- - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
hardwareVersion - - -string - - - - -

Hardware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> name

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
name - - -string - - - - -

Name of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> ports

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
ports - - -Array.<string> - - - - -

Array of port names

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> primaryMACAddress

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
primaryMACAddress - - -string - - - - -

Primary MAC address of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> rssi

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rssi - - -number - - - - -

Signal strength of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> type

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
type - - -string - - - - -

Hub type

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> uuid

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
uuid - - -string - - - - -

UUID of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-
-

connect()

- - -
-
- - -
-

Connect to the Hub.

-
- - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful connect.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

createVirtualPort(firstPortName, secondPortName)

+ +

+ (readonly) firmwareVersion +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - - -
+ +
+ + + + + + + + + + + + + + + +
NameTypeDescription
firmwareVersion + + + + string + -
-

Combines two ports with into a single virtual port.

+ + + +
+

Firmware version of the hub

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

+ (readonly) hardwareVersion +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hardwareVersion + + + + string + + + + + + + +

Hardware version of the hub

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

+ (readonly) name +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + + + + + + + +

Name of the hub

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

+ (readonly) ports +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ports + + + + Array.<string> + + + + + + + +

Array of port names

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

+ (readonly) primaryMACAddress +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
primaryMACAddress + + + + string + + + + + + + +

Primary MAC address of the hub

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

+ (readonly) rssi +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rssi + + + + number + + + + + + + +

Signal strength of the hub

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

+ (readonly) type +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
type + + + + string + + + + + + + +

Hub type

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

+ (readonly) uuid +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
uuid + + + + string + + + + + + + +

UUID of the hub

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

Methods

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

+ connect() → {Promise} +

+
+ + + + + +
+

Connect to the Hub.

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

+ createVirtualPort(firstPortName, secondPortName) → {Promise} +

+
+ + + + + +
+

Combines two ports with into a single virtual port.

Note: The devices attached to the ports must be of the same device type.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
firstPortName
+ - firstPortName - - -string - - - - -

First port name

secondPortName - - -string + +

Second port name

+

First port name

+ +
secondPortName + + + + string + + + + + + + +

Second port name

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - - - - -
-
-

disconnect()

- - -
-
+ + + + + + + + +

+ disconnect() → {Promise} +

+
+ + + + + +
+

Disconnect the Hub.

+
+ + + + + - -
-

Disconnect the Hub.

-
- - - - - -
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful disconnect.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

getDeviceAtPort(portName)

- - -
-
+ - -
-

Retrieves the device attached to a given port.

-
- + + + + + + +

+ getDeviceAtPort(portName) → {Device|undefined} +

+
- + - - - -
Parameters:
- - - +
+

Retrieves the device attached to a given port.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
portName + + + + string + -
portName - - -string + +

The name of the port to retrieve the device from.

+

The name of the port to retrieve the device from.

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

The device attached to the port.

-
- - - -
-
- Type -
-
- -Device -| - -undefined + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

getDevices()

- - -
-
+ + + + + + + + +

+ getDevices() → {Array.<Device>} +

+
+ + + + + +
+

Retrieves all attached devices.

+
+ + + + + - -
-

Retrieves all attached devices.

-
- - - - - -
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Array of all attached devices.

-
- - - -
-
- Type -
-
- -Array.<Device> + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

getDevicesByType(deviceType)

- - -
-
+ - -
-

Retrieves an array of devices of the specified type.

-
- + + + + + + +

+ getDevicesByType(deviceType) → {Array.<Device>} +

+
- + - - - -
Parameters:
- - - +
+

Retrieves an array of devices of the specified type.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
deviceType + + + + number + -
deviceType - - -number + +

The device type to lookup.

+

The device type to lookup.

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Array of all devices of the specified type.

-
- - - -
-
- Type -
-
- -Array.<Device> + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setName(name)

- - -
-
+ - -
-

Set the name of the Hub.

-
- + + + + + + +

+ setName(name) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the name of the Hub.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
name + + + + string + -
name - - -string + +

New name of the hub (14 characters or less, ASCII only).

+

New name of the hub (14 characters or less, ASCII only).

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

shutdown()

- - -
-
+ + + + + + + + +

+ shutdown() → {Promise} +

+
+ + + + + +
+

Shutdown the Hub.

+
+ + + + + - -
-

Shutdown the Hub.

-
- - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful disconnect.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

sleep(delay)

- - -
-
+ - -
-

Sleep a given amount of time.

+ + + + + + +

+ sleep(delay) → {Promise} +

+
+ + + + + +
+

Sleep a given amount of time.

Note: This is a helper method to make it easier to add delays into a chain of commands.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
delay + + + + number + -
delay - - -number + +

How long to sleep (in milliseconds).

+

How long to sleep (in milliseconds).

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved after the delay is finished.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

wait(commands)

- - -
-
+ - -
-

Wait until a given list of concurrently running commands are complete.

+ + + + + + +

+ wait(commands) → {Promise} +

+
+ + + + + +
+

Wait until a given list of concurrently running commands are complete.

Note: This is a helper method to make it easier to wait for concurrent commands to complete.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
commands + + + + Array.<Promise.<any>> + -
commands - - -Array.<Promise.<any>> + +

Array of executing commands.

+

Array of executing commands.

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved after the commands are finished.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

waitForDeviceAtPort(portName)

- - -
-
+ - -
-

Retrieves the device attached to a given port, waiting until one is attached if there isn't one.

+ + + + + + +

+ waitForDeviceAtPort(portName) → {Promise} +

+
+ + + + + +
+

Retrieves the device attached to a given port, waiting until one is attached if there isn't one.

Note: If a device is never attached, the returned promise may never resolve.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
portName + + + + string + -
portName - - -string + +

The name of the port to retrieve the device from.

+

The name of the port to retrieve the device from.

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved once a device is attached, or resolved immediately if a device is already attached.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

waitForDeviceByType(deviceType)

- - -
-
+ - -
-

Retrieves the first device attached of the specified type, waiting until one is attached if there isn't one.

+ + + + + + +

+ waitForDeviceByType(deviceType) → {Promise} +

+
+ + + + + +
+

Retrieves the first device attached of the specified type, waiting until one is attached if there isn't one.

Note: If a device is never attached, the returned promise may never resolve.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
deviceType + + + + number + -
deviceType - - -number + +

The device type to lookup.

+

The device type to lookup.

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved once a device is attached, or resolved immediately if a device is already attached.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + +

Events

+ + - -
- - + - + + + + + + +

+ attach +

+
- -

Events

+ -
- -
-
-

attach

- - -
-
- -
-

Emits when a device is attached to the Hub.

-
- - +
+

Emits when a device is attached to the Hub.

+
- - - -
Parameters:
- - - + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
device + + + + Device + -
device - - -Device + +
+ + +
- - + + +
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- - -
-
-

button

- - -
-
- -
-

Emits when a button is pressed.

-
- - - - - -
Parameters:
+ + - - + + + + + + + + + +

+ button +

+
+ + + + + +
+

Emits when a button is pressed.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
button
+ - button - - -string - - - - -
state - - -ButtonState + +
+ + +
state + + + + ButtonState + + + + + + + + + +
- - + + +
- - + - + - -
Inherited From:
-
- -
- + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- - -
-
-

detach

- - -
-
- -
-

Emits when a device is detached from the Hub.

-
- - - - - -
Parameters:
+ + - - + + + + + + + + + +

+ detach +

+
+ + + + + +
+

Emits when a device is detached from the Hub.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
device + + + + Device + -
device - - -Device + +
+ + +
- - + + +
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
+ + + + + + - -
-
-

disconnect

- - -
-
- -
-

Emits when the hub is disconnected.

-
- - + + + + + + + + +

+ disconnect +

+
+ + + + + +
+

Emits when the hub is disconnected.

+
+ + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
-
- - + + + + + + +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/HubLED.html b/docs/HubLED.html index 9bd3075..4719d6d 100644 --- a/docs/HubLED.html +++ b/docs/HubLED.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: HubLED - - + + - + + HubLED - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: HubLED

-
+ + +
+ +

HubLED -

- + - + -
+
+
+ +

+ + HubLED + +

+ + + +
+ +
- + -
-
-

new HubLED()

- - -
-
- - + + + + + + + + +

+ new HubLED() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1302 +207,1173 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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:
-
- -
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-
-

setColor(color)

- - -
-
- - -
-

Set the color of the LED on the Hub via a color value.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
color - - -Color - - - - -
- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

setRGB(red, green, blue)

- - -
-
- -
-

Set the color of the LED on the Hub via RGB values.

-
- +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeTypeDescriptionDescription
red
hub - - -number - - - - -
+ + + + Hub + -
green - - -number + + +

The Hub the device is attached to.

+
blue - - -number - - - - -
- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
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:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ setColor(color) → {Promise} +

+
+ + + + + +
+

Set the color of the LED on the Hub via a color value.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
color + + + + Color + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ setRGB(red, green, blue) → {Promise} +

+
+ + + + + +
+

Set the color of the LED on the Hub via RGB values.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
red + + + + number + + + + + + + + + +
green + + + + number + + + + + + + + + +
blue + + + + number + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/LPF2Hub.html b/docs/LPF2Hub.html index 6f30228..3cf0d98 100644 --- a/docs/LPF2Hub.html +++ b/docs/LPF2Hub.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: LPF2Hub - - + + - + + LPF2Hub - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: LPF2Hub

-
+ + +
+ +

LPF2Hub -

- + - + -
+
+
+ +

+ + LPF2Hub + +

+ + + +
+ +
- + -
-
-

new LPF2Hub()

- - -
-
- - + + + + + + + + +

+ new LPF2Hub() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1941 +207,1805 @@ - +

Members

-
+ -
-
-

<readonly> batteryLevel

- -
-
- +

+ (readonly) batteryLevel +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
batteryLevel - - -number - - - - -

Battery level of the hub (Percentage between 0-100)

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> firmwareVersion

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NamebatteryLevelType + + + + number + + + + + + + Description +

Battery level of the hub (Percentage between 0-100)

+
firmwareVersion - - -string - - - - -

Firmware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - -
- - - -
- - - -
-
-

<readonly> hardwareVersion

- - -
-
- - - - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) firmwareVersion +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
hardwareVersion
firmwareVersion - - -string - - - - -

Hardware version of the hub

-
+ + + + + string + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> name

+ + + + + + + +

Firmware version of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) hardwareVersion +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
name
hardwareVersion - - -string - - - - -

Name of the hub

-
+ + + + + string + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> ports

+ + + + + + + +

Hardware version of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) name +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
ports
name - - -Array.<string> - - - - -

Array of port names

-
+ + + + + string + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> primaryMACAddress

+ + + + + + + +

Name of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) ports +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
primaryMACAddress
ports - - -string - - - - -

Primary MAC address of the hub

-
+ + + + + Array.<string> + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> rssi

+ + + + + + + +

Array of port names

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) primaryMACAddress +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
rssi
primaryMACAddress - - -number - - - - -

Signal strength of the hub

-
+ + + + + string + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> type

+ + + + + + + +

Primary MAC address of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) rssi +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
type
rssi - - -string - - - - -

Hub type

-
+ + + + + number + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> uuid

+ + + + + + + +

Signal strength of the hub

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) type +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
uuid
type - - -string - - - - -

UUID of the hub

+ + + + string + -
+

Hub type

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

Methods

-
+ + + -
-
-

createVirtualPort(firstPortName, secondPortName)

+ +

+ (readonly) uuid +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - - -
+ +
+ + + + + + + + + + + + + + + +
NameTypeDescription
uuid + + + + string + -
-

Combines two ports with into a single virtual port.

+ + + +
+

UUID of the hub

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

Methods

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

+ createVirtualPort(firstPortName, secondPortName) → {Promise} +

+
+ + + + + +
+

Combines two ports with into a single virtual port.

Note: The devices attached to the ports must be of the same device type.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
firstPortName
+ - firstPortName - - -string - - - - -

First port name

secondPortName - - -string + +

Second port name

+

First port name

+ +
secondPortName + + + + string + + + + + + + +

Second port name

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - - - - -
-
-

setName(name)

- - -
-
+ - -
-

Set the name of the Hub.

-
- + + + + + + +

+ setName(name) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the name of the Hub.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
name + + + + string + -
name - - -string + +

New name of the hub (14 characters or less, ASCII only).

+

New name of the hub (14 characters or less, ASCII only).

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

shutdown()

- - -
-
+ + + + + + + + +

+ shutdown() → {Promise} +

+
+ + + + + +
+

Shutdown the Hub.

+
+ + + + + - -
-

Shutdown the Hub.

-
- - - - - -
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful disconnect.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + +

Events

+ + - -
- - + - + + + + + + +

+ button +

+
- -

Events

+ -
- -
-
-

button

- - -
-
- -
-

Emits when a button is pressed.

-
- - +
+

Emits when a button is pressed.

+
- - - -
Parameters:
- - - + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
button
+ - button - - -string - - - - -
state - - -ButtonState + +
+ + +
state + + + + ButtonState + + + + + + + + + +
- - + + +
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
-
- - + + + + + + +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/Light.html b/docs/Light.html index 875c991..e22424d 100644 --- a/docs/Light.html +++ b/docs/Light.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: Light - - + + - + + Light - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: Light

-
+ + +
+ +

Light -

- + - + -
+
+
+ +

+ + Light + +

+ + + +
+ +
- + -
-
-

new Light()

- - -
-
- - + + + + + + + + +

+ new Light() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1302 +207,1173 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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:
-
- -
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-
-

rampBrightness(fromBrightness, toBrightness, time)

- - -
-
- - -
-

Ramp the light brightness.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
fromBrightness - - -number - - - - -

Brightness value between 0-100 (0 is off)

toBrightness - - -number - - - - -

Brightness value between 0-100 (0 is off)

time - - -number - - - - -

How long the ramp should last (in milliseconds).

- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

setBrightness(brightness)

- - -
-
- -
-

Set the light brightness.

-
- +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
brightness
hub - - -number - - - - -

Brightness value between 0-100 (0 is off)

+ + + + Hub + -
+

The Hub the device is attached to.

+
- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
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:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ rampBrightness(fromBrightness, toBrightness, time) → {Promise} +

+
+ + + + + +
+

Ramp the light brightness.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
fromBrightness + + + + number + + + + + + + +

Brightness value between 0-100 (0 is off)

+ +
toBrightness + + + + number + + + + + + + +

Brightness value between 0-100 (0 is off)

+ +
time + + + + number + + + + + + + +

How long the ramp should last (in milliseconds).

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

+ setBrightness(brightness) → {Promise} +

+
+ + + + + +
+

Set the light brightness.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
brightness + + + + number + + + + + + + +

Brightness value between 0-100 (0 is off)

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/Mario.html b/docs/Mario.html index d95f6c5..60b7e8f 100644 --- a/docs/Mario.html +++ b/docs/Mario.html @@ -1,194 +1,210 @@ - - - - node-poweredup Class: Mario - - + + - + + Mario - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: Mario

-
+ + +
+ +

Mario -

- + - + -
+
+
+ +

+ + Mario + +

+ + + +
+ +
- + -
-
-

new Mario()

- - -
-
- -
-

Mario is emitted if the discovered device is a LEGO Super Mario brick.

-
- - + + + + + + + + +

+ new Mario() +

+
+ + + + + +
+

Mario is emitted if the discovered device is a LEGO Super Mario brick.

+
+ + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -197,2022 +213,1841 @@ - +

Members

-
+ -
-
-

<readonly> batteryLevel

- -
-
- +

+ (readonly) batteryLevel +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
batteryLevel - - -number - - - - -

Battery level of the hub (Percentage between 0-100)

-
- - - - - - - - -
Inherited From:
-
- -
- - - -
Overrides:
-
- - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> firmwareVersion

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NamebatteryLevelType + + + + number + + + + + + + Description +

Battery level of the hub (Percentage between 0-100)

+
firmwareVersion - - -string - - - - -

Firmware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - -
Overrides:
-
- - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - -
- - - -
- - - -
-
-

<readonly> hardwareVersion

- - -
-
- - - - -
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
hardwareVersion - - -string - - - - -

Hardware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- -
+ + + + -
-
-

<readonly> name

+

+ (readonly) firmwareVersion +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
firmwareVersion + + + + string + - + + + +

Firmware version of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
name - - -string - - - - -

Name of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> ports

+

+ (readonly) hardwareVersion +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
hardwareVersion + + + + string + - + + + +

Hardware version of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
ports - - -Array.<string> - - - - -

Array of port names

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> primaryMACAddress

+

+ (readonly) name +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + - + + + +

Name of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
primaryMACAddress - - -string - - - - -

Primary MAC address of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> rssi

+

+ (readonly) ports +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
ports + + + + Array.<string> + - + + + +

Array of port names

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rssi - - -number - - - - -

Signal strength of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> type

+

+ (readonly) primaryMACAddress +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
primaryMACAddress + + + + string + - + + + +

Primary MAC address of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
type - - -string - - - - -

Hub type

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> uuid

+

+ (readonly) rssi +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
rssi + + + + number + - + + + +

Signal strength of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
uuid - - -string - - - - -

UUID of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - -
- - -

Methods

-
+ + + -
-
-

createVirtualPort(firstPortName, secondPortName)

+ +

+ (readonly) type +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - - -
+ +
+ + + + + + + + + + + + + + + +
NameTypeDescription
type + + + + string + -
-

Combines two ports with into a single virtual port.

+ + + +
+

Hub type

+
+ + + + +
+ + + + + + + + +
Overrides:
+
+ +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + +

+ (readonly) uuid +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
uuid + + + + string + + + + + + + +

UUID of the hub

+
+ + + + +
+ + + + + + + + +
Overrides:
+
+ +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ createVirtualPort(firstPortName, secondPortName) → {Promise} +

+
+ + + + + +
+

Combines two ports with into a single virtual port.

Note: The devices attached to the ports must be of the same device type.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
firstPortName
+ - firstPortName - - -string - - - - -

First port name

secondPortName - - -string + +

Second port name

+

First port name

+ +
secondPortName + + + + string + + + + + + + +

Second port name

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - - - - -
-
-

setName(name)

- - -
-
+ - -
-

Set the name of the Hub.

-
- + + + + + + +

+ setName(name) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the name of the Hub.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
name + + + + string + -
name - - -string + +

New name of the hub (14 characters or less, ASCII only).

+

New name of the hub (14 characters or less, ASCII only).

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

shutdown()

- - -
-
+ + + + + + + + +

+ shutdown() → {Promise} +

+
+ + + + + +
+

Shutdown the Hub.

+
+ + + + + - -
-

Shutdown the Hub.

-
- - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful disconnect.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + +

Events

+ + - -
- - + - + + + + + + +

+ button +

+
- -

Events

+ -
- -
-
-

button

- - -
-
- -
-

Emits when a button is pressed.

-
- - +
+

Emits when a button is pressed.

+
- - - -
Parameters:
- - - + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
button
+ - button - - -string - - - - -
state - - -ButtonState + +
+ + +
state + + + + ButtonState + + + + + + + + + +
- - + + +
- - + - + - -
Inherited From:
-
- -
- + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
-
- - + + + + + + +
- - + -
+
- -
- -
- + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/MarioAccelerometer.html b/docs/MarioAccelerometer.html index cf2772f..f0a0fbb 100644 --- a/docs/MarioAccelerometer.html +++ b/docs/MarioAccelerometer.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: MarioAccelerometer - - + + - + + MarioAccelerometer - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: MarioAccelerometer

-
+ + +
+ +

MarioAccelerometer -

- + - + -
+
+
+ +

+ + MarioAccelerometer + +

+ + + +
+ +
- + -
-
-

new MarioAccelerometer()

- - -
-
- - + + + + + + + + +

+ new MarioAccelerometer() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1112 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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 - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - - - - -
+ -
-
-

gest

- - -
-
- -
-

Emits when a gesture is detected

-
- - - - - -
Type: -object +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
gesture
hub - - -number - - - - -
+ + + + Hub + -
+

The Hub the device is attached to.

+
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1304,153 +1002,378 @@ +

Events

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

+ accel :object +

+
+ + + + + +
+

Emits when accelerometer detects movement. Measured in mG.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + + + number + - + + + + + +
y + + + + number + - - + + + + + +
z + + + + number + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ gest :object +

+
+ + + + + +
+

Emits when a gesture is detected

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
gesture + + + + number + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
-
- + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/MarioBarcodeSensor.html b/docs/MarioBarcodeSensor.html index 58e9539..756799d 100644 --- a/docs/MarioBarcodeSensor.html +++ b/docs/MarioBarcodeSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: MarioBarcodeSensor - - + + - + + MarioBarcodeSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: MarioBarcodeSensor

-
+ + +
+ +

MarioBarcodeSensor -

- + - + -
+
+
+ +

+ + MarioBarcodeSensor + +

+ + + +
+ +
- + -
-
-

new MarioBarcodeSensor()

- - -
-
- - + + + + + + + + +

+ new MarioBarcodeSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1112 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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

- -
- -
-
-

barcode

- - -
-
- - -
-

Emits when the barcode sensor sees a barcode.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
id - - -number - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - - - - -
+ -
-
-

rgb

- - -
-
- -
-

Emits when the barcode sensor sees a RGB color.

-
- - - - - -
Type: -object +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeTypeDescriptionDescription
r
hub - - -number - - - - -
+ + + + Hub + -
g - - -number + + +

The Hub the device is attached to.

+
b - - -number - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1304,153 +1002,378 @@ +

Events

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

+ barcode :object +

+
+ + + + + +
+

Emits when the barcode sensor sees a barcode.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + +
NameTypeDescription
id + + + + number + - + + + + + +
-
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ rgb :object +

+
+ + + + + +
+

Emits when the barcode sensor sees a RGB color.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
r + + + + number + + + + + + + + + +
g + + + + number + + + + + + + + + +
b + + + + number + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
-
- + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/MarioPantsSensor.html b/docs/MarioPantsSensor.html index 3ad0b12..b7c3fc5 100644 --- a/docs/MarioPantsSensor.html +++ b/docs/MarioPantsSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: MarioPantsSensor - - + + - + + MarioPantsSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: MarioPantsSensor

-
+ + +
+ +

MarioPantsSensor -

- + - + -
+
+
+ +

+ + MarioPantsSensor + +

+ + + +
+ +
- + -
-
-

new MarioPantsSensor()

- - -
-
- - + + + + + + + + +

+ new MarioPantsSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,920 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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

- -
- -
-
-

pants

- - -
-
- - -
-

Emits when the user changes the pants on Mario.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
pants - - -number - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1112,153 +1002,174 @@ +

Events

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

+ pants :object +

+
+ + + + + +
+

Emits when the user changes the pants on Mario.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + +
NameTypeDescription
pants + + + + number + - + + + + + +
-
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- +
- - + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/MediumLinearMotor.html b/docs/MediumLinearMotor.html index 34f51f5..bb35f0e 100644 --- a/docs/MediumLinearMotor.html +++ b/docs/MediumLinearMotor.html @@ -1,1565 +1,1426 @@ - - - - node-poweredup Class: MediumLinearMotor - - + + - + + MediumLinearMotor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - - - -
-
- - -
- -
- - -

Class: MediumLinearMotor

-
- -
- -

- MediumLinearMotor -

- - -
- - -
-
- - -
-
-

new MediumLinearMotor()

- - -
-
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - -
- - -

Extends

- - + + + + + + +
+ +

+ MediumLinearMotor +

+ + +
+
+

+ + MediumLinearMotor + +

+ +
- +
+
+ + - - -

Methods

+ -
- -
-
-

rotateByDegrees(degrees [, speed])

- - -
-
+ + + + + + +

+ new MediumLinearMotor() +

+
- -
-

Rotate a motor by a given amount of degrees.

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

Extends

+ + + + + + + + + -
Parameters:
+ + + + +

Methods

+ + - - + + + + + + + + + +

+ rotateByDegrees(degrees, speedopt) → {Promise} +

+
+ + + + + +
+

Rotate a motor by a given amount of degrees.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - - - - - - + + number + - - - - - - - - - - - - + + - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
NameTypeTypeArgumentAttributesDefaultDescription
degreesDescription
+ - degrees - - -number - - - - - - - - - - - - -

How much the motor should be rotated (in degrees).

speed - - -number + + - - <optional>
- - - - - -
- - - 100 - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ + +

How much the motor should be rotated (in degrees).

+ +
speed + + + + number + + + + + + + + + <optional>
+ + + + + +
+ + 100 + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setAccelerationTime(time)

- - -
-
+ - -
-

Set the global acceleration time

-
- + + + + + + +

+ setAccelerationTime(time) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the global acceleration time

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
time + + + + number + -
time - - -number + +

How long acceleration should last (in milliseconds).

+

How long acceleration should last (in milliseconds).

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setBrakingStyle(style)

- - -
-
+ - -
-

Set the braking style of the motor.

+ + + + + + +

+ setBrakingStyle(style) +

+
+ + + + + +
+

Set the braking style of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setDecelerationTime(time)

- - -
-
- - -
-

Set the global deceleration time

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
time - - -number - - - - -

How long deceleration should last (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +

+ setDecelerationTime(time) → {Promise} +

+
+ + + + + +
+

Set the global deceleration time

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + +
NameTypeDescription
time + -
-
-

setMaxPower(style)

- - -
-
+ + number + -
-

Set the max power of the motor.

+ + + +
+

How long deceleration should last (in milliseconds).

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

+ setMaxPower(style) +

+
+ + + + + +
+

Set the max power of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setSpeed(speed, time)

- - -
-
- - -
-

Set the motor speed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
speed - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

time - - -number - - - - -

How long the motor should run for (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - + - + + + + + + +

+ setSpeed(speed, time) → {Promise} +

+
- -

Events

- -
- -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object + -
- - - -
Parameters:
- +
+

Set the motor speed.

+
- - + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
speed + + + + number + -
rotation - - -number + +
+

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
time + + + + number + + + + + + + +

How long the motor should run for (in milliseconds).

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

Events

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

+ rotate :object +

+
+ + + + + +
+

Emits when a rotation sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rotation + + + + number + - + + + + + +
+ + + + +
+ + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- -
- -
- +
-
-
+
-
+
- -
- -
- + -
- - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/MotionSensor.html b/docs/MotionSensor.html index 0afb31e..e6291d7 100644 --- a/docs/MotionSensor.html +++ b/docs/MotionSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: MotionSensor - - + + - + + MotionSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: MotionSensor

-
+ + +
+ +

MotionSensor -

- + - + -
+
+
+ +

+ + MotionSensor + +

+ + + +
+ +
- + -
-
-

new MotionSensor()

- - -
-
- - + + + + + + + + +

+ new MotionSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,920 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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

- -
- -
-
-

distance

- - -
-
- - -
-

Emits when a distance sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
distance - - -number - - - - -

Distance, in millimeters.

- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1112,153 +1002,174 @@ +

Events

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

+ distance :object +

+
+ + + + + +
+

Emits when a distance sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + +
NameTypeDescription
distance + + + + number + - + + + +

Distance, in millimeters.

+ +
-
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- +
- - + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/MoveHub.html b/docs/MoveHub.html index 3f0f973..b0de5a7 100644 --- a/docs/MoveHub.html +++ b/docs/MoveHub.html @@ -1,194 +1,210 @@ - - - - node-poweredup Class: MoveHub - - + + - + + MoveHub - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: MoveHub

-
+ + +
+ +

MoveHub -

- + - + -
+
+
+ +

+ + MoveHub + +

+ + + +
+ +
- + -
-
-

new MoveHub()

- - -
-
- -
-

The MoveHub is emitted if the discovered device is a Move Hub.

-
- - + + + + + + + + +

+ new MoveHub() +

+
+ + + + + +
+

The MoveHub is emitted if the discovered device is a Move Hub.

+
+ + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -197,2022 +213,1841 @@ - +

Members

-
+ -
-
-

<readonly> batteryLevel

- -
-
- +

+ (readonly) batteryLevel +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
batteryLevel - - -number - - - - -

Battery level of the hub (Percentage between 0-100)

-
- - - - - - - - -
Inherited From:
-
- -
- - - -
Overrides:
-
- - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> firmwareVersion

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NamebatteryLevelType + + + + number + + + + + + + Description +

Battery level of the hub (Percentage between 0-100)

+
firmwareVersion - - -string - - - - -

Firmware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - -
Overrides:
-
- - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - -
- - - -
- - - -
-
-

<readonly> hardwareVersion

- - -
-
- - - - -
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
hardwareVersion - - -string - - - - -

Hardware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- -
+ + + + -
-
-

<readonly> name

+

+ (readonly) firmwareVersion +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
firmwareVersion + + + + string + - + + + +

Firmware version of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
name - - -string - - - - -

Name of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> ports

+

+ (readonly) hardwareVersion +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
hardwareVersion + + + + string + - + + + +

Hardware version of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
ports - - -Array.<string> - - - - -

Array of port names

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> primaryMACAddress

+

+ (readonly) name +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + - + + + +

Name of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
primaryMACAddress - - -string - - - - -

Primary MAC address of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> rssi

+

+ (readonly) ports +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
ports + + + + Array.<string> + - + + + +

Array of port names

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rssi - - -number - - - - -

Signal strength of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> type

+

+ (readonly) primaryMACAddress +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
primaryMACAddress + + + + string + - + + + +

Primary MAC address of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
type - - -string - - - - -

Hub type

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> uuid

+

+ (readonly) rssi +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
rssi + + + + number + - + + + +

Signal strength of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
uuid - - -string - - - - -

UUID of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - -
- - -

Methods

-
+ + + -
-
-

createVirtualPort(firstPortName, secondPortName)

+ +

+ (readonly) type +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - - -
+ +
+ + + + + + + + + + + + + + + +
NameTypeDescription
type + + + + string + -
-

Combines two ports with into a single virtual port.

+ + + +
+

Hub type

+
+ + + + +
+ + + + + + + + +
Overrides:
+
+ +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + +

+ (readonly) uuid +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
uuid + + + + string + + + + + + + +

UUID of the hub

+
+ + + + +
+ + + + + + + + +
Overrides:
+
+ +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ createVirtualPort(firstPortName, secondPortName) → {Promise} +

+
+ + + + + +
+

Combines two ports with into a single virtual port.

Note: The devices attached to the ports must be of the same device type.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
firstPortName
+ - firstPortName - - -string - - - - -

First port name

secondPortName - - -string + +

Second port name

+

First port name

+ +
secondPortName + + + + string + + + + + + + +

Second port name

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - - - - -
-
-

setName(name)

- - -
-
+ - -
-

Set the name of the Hub.

-
- + + + + + + +

+ setName(name) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the name of the Hub.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
name + + + + string + -
name - - -string + +

New name of the hub (14 characters or less, ASCII only).

+

New name of the hub (14 characters or less, ASCII only).

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

shutdown()

- - -
-
+ + + + + + + + +

+ shutdown() → {Promise} +

+
+ + + + + +
+

Shutdown the Hub.

+
+ + + + + - -
-

Shutdown the Hub.

-
- - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful disconnect.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + +

Events

+ + - -
- - + - + + + + + + +

+ button +

+
- -

Events

+ -
- -
-
-

button

- - -
-
- -
-

Emits when a button is pressed.

-
- - +
+

Emits when a button is pressed.

+
- - - -
Parameters:
- - - + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
button
+ - button - - -string - - - - -
state - - -ButtonState + +
+ + +
state + + + + ButtonState + + + + + + + + + +
- - + + +
- - + - + - -
Inherited From:
-
- -
- + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
-
- - + + + + + + +
- - + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/MoveHubMediumLinearMotor.html b/docs/MoveHubMediumLinearMotor.html index 24857a8..33f2965 100644 --- a/docs/MoveHubMediumLinearMotor.html +++ b/docs/MoveHubMediumLinearMotor.html @@ -1,1565 +1,1426 @@ - - - - node-poweredup Class: MoveHubMediumLinearMotor - - + + - + + MoveHubMediumLinearMotor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - - - -
-
- - -
- -
- - -

Class: MoveHubMediumLinearMotor

-
- -
- -

- MoveHubMediumLinearMotor -

- - -
- - -
-
- - -
-
-

new MoveHubMediumLinearMotor()

- - -
-
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - -
- - -

Extends

- - + + + + + + +
+ +

+ MoveHubMediumLinearMotor +

+ + +
+
+

+ + MoveHubMediumLinearMotor + +

+ +
- +
+
+ + - - -

Methods

+ -
- -
-
-

rotateByDegrees(degrees [, speed])

- - -
-
+ + + + + + +

+ new MoveHubMediumLinearMotor() +

+
- -
-

Rotate a motor by a given amount of degrees.

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

Extends

+ + + + + + + + + -
Parameters:
+ + + + +

Methods

+ + - - + + + + + + + + + +

+ rotateByDegrees(degrees, speedopt) → {Promise} +

+
+ + + + + +
+

Rotate a motor by a given amount of degrees.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - - - - - - + + number + - - - - - - - - - - - - + + - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
NameTypeTypeArgumentAttributesDefaultDescription
degreesDescription
+ - degrees - - -number - - - - - - - - - - - - -

How much the motor should be rotated (in degrees).

speed - - -number + + - - <optional>
- - - - - -
- - - 100 - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ + +

How much the motor should be rotated (in degrees).

+ +
speed + + + + number + + + + + + + + + <optional>
+ + + + + +
+ + 100 + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setAccelerationTime(time)

- - -
-
+ - -
-

Set the global acceleration time

-
- + + + + + + +

+ setAccelerationTime(time) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the global acceleration time

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
time + + + + number + -
time - - -number + +

How long acceleration should last (in milliseconds).

+

How long acceleration should last (in milliseconds).

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setBrakingStyle(style)

- - -
-
+ - -
-

Set the braking style of the motor.

+ + + + + + +

+ setBrakingStyle(style) +

+
+ + + + + +
+

Set the braking style of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setDecelerationTime(time)

- - -
-
- - -
-

Set the global deceleration time

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
time - - -number - - - - -

How long deceleration should last (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +

+ setDecelerationTime(time) → {Promise} +

+
+ + + + + +
+

Set the global deceleration time

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + +
NameTypeDescription
time + -
-
-

setMaxPower(style)

- - -
-
+ + number + -
-

Set the max power of the motor.

+ + + +
+

How long deceleration should last (in milliseconds).

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

+ setMaxPower(style) +

+
+ + + + + +
+

Set the max power of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setSpeed(speed, time)

- - -
-
- - -
-

Set the motor speed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
speed - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

time - - -number - - - - -

How long the motor should run for (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - + - + + + + + + +

+ setSpeed(speed, time) → {Promise} +

+
- -

Events

- -
- -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object + -
- - - -
Parameters:
- +
+

Set the motor speed.

+
- - + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
speed + + + + number + -
rotation - - -number + +
+

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
time + + + + number + + + + + + + +

How long the motor should run for (in milliseconds).

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

Events

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

+ rotate :object +

+
+ + + + + +
+

Emits when a rotation sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rotation + + + + number + - + + + + + +
+ + + + +
+ + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- -
- -
- +
-
-
+
-
+
- -
- -
- + -
- - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/MoveHubTiltSensor.html b/docs/MoveHubTiltSensor.html index 551efff..9344339 100644 --- a/docs/MoveHubTiltSensor.html +++ b/docs/MoveHubTiltSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: MoveHubTiltSensor - - + + - + + MoveHubTiltSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: MoveHubTiltSensor

-
+ + +
+ +

MoveHubTiltSensor -

- + - + -
+
+
+ +

+ + MoveHubTiltSensor + +

+ + + +
+ +
- + -
-
-

new MoveHubTiltSensor()

- - -
-
- - + + + + + + + + +

+ new MoveHubTiltSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,944 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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

- -
- -
-
-

tilt

- - -
-
- - -
-

Emits when a tilt sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
x - - -number - - - - -
y - - -number - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1136,153 +1002,203 @@ +

Events

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

+ tilt :object +

+
+ + + + + +
+

Emits when a tilt sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + + + number + - + + + + + +
y + + + + number + - - + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
-
- + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/PiezoBuzzer.html b/docs/PiezoBuzzer.html index ad3606c..96cf65a 100644 --- a/docs/PiezoBuzzer.html +++ b/docs/PiezoBuzzer.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: PiezoBuzzer - - + + - + + PiezoBuzzer - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: PiezoBuzzer

-
+ + +
+ +

PiezoBuzzer -

- + - + -
+
+
+ +

+ + PiezoBuzzer + +

+ + + +
+ +
- + -
-
-

new PiezoBuzzer()

- - -
-
- - + + + + + + + + +

+ new PiezoBuzzer() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1116 +207,998 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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:
-
- -
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-
-

playTone(frequency, time)

- - -
-
- - -
-

Play a tone on the Hub's in-built buzzer

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
frequency - - -number - - - - -
time - - -number - - - - -

How long the tone should play for (in milliseconds).

- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the tone has finished playing).

-
- - - -
-
- Type -
-
- -Promise + + + +
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:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ playTone(frequency, time) → {Promise} +

+
+ + + + + +
+

Play a tone on the Hub's in-built buzzer

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
frequency + + + + number + + + + + + + + + +
time + + + + number + + + + + + + +

How long the tone should play for (in milliseconds).

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- +
- - + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/RemoteControl.html b/docs/RemoteControl.html index fba4db4..713b93a 100644 --- a/docs/RemoteControl.html +++ b/docs/RemoteControl.html @@ -1,194 +1,210 @@ - - - - node-poweredup Class: RemoteControl - - + + - + + RemoteControl - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: RemoteControl

-
+ + +
+ +

RemoteControl -

- + - + -
+
+
+ +

+ + RemoteControl + +

+ + + +
+ +
- + -
-
-

new RemoteControl()

- - -
-
- -
-

The RemoteControl is emitted if the discovered device is a Remote Control.

-
- - + + + + + + + + +

+ new RemoteControl() +

+
+ + + + + +
+

The RemoteControl is emitted if the discovered device is a Remote Control.

+
+ + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -197,2022 +213,1841 @@ - +

Members

-
+ -
-
-

<readonly> batteryLevel

- -
-
- +

+ (readonly) batteryLevel +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
batteryLevel - - -number - - - - -

Battery level of the hub (Percentage between 0-100)

-
- - - - - - - - -
Inherited From:
-
- -
- - - -
Overrides:
-
- - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> firmwareVersion

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NamebatteryLevelType + + + + number + + + + + + + Description +

Battery level of the hub (Percentage between 0-100)

+
firmwareVersion - - -string - - - - -

Firmware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - -
Overrides:
-
- - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - -
- - - -
- - - -
-
-

<readonly> hardwareVersion

- - -
-
- - - - -
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
hardwareVersion - - -string - - - - -

Hardware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- -
+ + + + -
-
-

<readonly> name

+

+ (readonly) firmwareVersion +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
firmwareVersion + + + + string + - + + + +

Firmware version of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
name - - -string - - - - -

Name of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> ports

+

+ (readonly) hardwareVersion +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
hardwareVersion + + + + string + - + + + +

Hardware version of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
ports - - -Array.<string> - - - - -

Array of port names

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> primaryMACAddress

+

+ (readonly) name +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + - + + + +

Name of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
primaryMACAddress - - -string - - - - -

Primary MAC address of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> rssi

+

+ (readonly) ports +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
ports + + + + Array.<string> + - + + + +

Array of port names

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rssi - - -number - - - - -

Signal strength of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> type

+

+ (readonly) primaryMACAddress +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
primaryMACAddress + + + + string + - + + + +

Primary MAC address of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
type - - -string - - - - -

Hub type

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> uuid

+

+ (readonly) rssi +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
rssi + + + + number + - + + + +

Signal strength of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
uuid - - -string - - - - -

UUID of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - -
- - -

Methods

-
+ + + -
-
-

createVirtualPort(firstPortName, secondPortName)

+ +

+ (readonly) type +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - - -
+ +
+ + + + + + + + + + + + + + + +
NameTypeDescription
type + + + + string + -
-

Combines two ports with into a single virtual port.

+ + + +
+

Hub type

+
+ + + + +
+ + + + + + + + +
Overrides:
+
+ +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + +

+ (readonly) uuid +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
uuid + + + + string + + + + + + + +

UUID of the hub

+
+ + + + +
+ + + + + + + + +
Overrides:
+
+ +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ createVirtualPort(firstPortName, secondPortName) → {Promise} +

+
+ + + + + +
+

Combines two ports with into a single virtual port.

Note: The devices attached to the ports must be of the same device type.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
firstPortName
+ - firstPortName - - -string - - - - -

First port name

secondPortName - - -string + +

Second port name

+

First port name

+ +
secondPortName + + + + string + + + + + + + +

Second port name

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - - - - -
-
-

setName(name)

- - -
-
+ - -
-

Set the name of the Hub.

-
- + + + + + + +

+ setName(name) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the name of the Hub.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
name + + + + string + -
name - - -string + +

New name of the hub (14 characters or less, ASCII only).

+

New name of the hub (14 characters or less, ASCII only).

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

shutdown()

- - -
-
+ + + + + + + + +

+ shutdown() → {Promise} +

+
+ + + + + +
+

Shutdown the Hub.

+
+ + + + + - -
-

Shutdown the Hub.

-
- - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful disconnect.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + +

Events

+ + - -
- - + - + + + + + + +

+ button +

+
- -

Events

+ -
- -
-
-

button

- - -
-
- -
-

Emits when a button is pressed.

-
- - +
+

Emits when a button is pressed.

+
- - - -
Parameters:
- - - + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
button
+ - button - - -string - - - - -
state - - -ButtonState + +
+ + +
state + + + + ButtonState + + + + + + + + + +
- - + + +
- - + - + - -
Inherited From:
-
- -
- + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
-
- - + + + + + + +
- - + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/RemoteControlButton.html b/docs/RemoteControlButton.html index 20a3604..284e845 100644 --- a/docs/RemoteControlButton.html +++ b/docs/RemoteControlButton.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: RemoteControlButton - - + + - + + RemoteControlButton - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: RemoteControlButton

-
+ + +
+ +

RemoteControlButton -

- + - + -
+
+
+ +

+ + RemoteControlButton + +

+ + + +
+ +
- + -
-
-

new RemoteControlButton()

- - -
-
- - + + + + + + + + +

+ new RemoteControlButton() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,920 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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

- -
- -
-
-

button

- - -
-
- - -
-

Emits when a button on the remote is pressed or released.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
event - - -number - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1112,153 +1002,174 @@ +

Events

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

+ button :object +

+
+ + + + + +
+

Emits when a button on the remote is pressed or released.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + +
NameTypeDescription
event + + + + number + - + + + + + +
-
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- +
- - + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/SimpleMediumLinearMotor.html b/docs/SimpleMediumLinearMotor.html index 079ccba..fb37b36 100644 --- a/docs/SimpleMediumLinearMotor.html +++ b/docs/SimpleMediumLinearMotor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: SimpleMediumLinearMotor - - + + - + + SimpleMediumLinearMotor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: SimpleMediumLinearMotor

-
+ + +
+ +

SimpleMediumLinearMotor -

- + - + -
+
+
+ +

+ + SimpleMediumLinearMotor + +

+ + + +
+ +
- + -
-
-

new SimpleMediumLinearMotor()

- - -
-
- - + + + + + + + + +

+ new SimpleMediumLinearMotor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,782 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
hub - - -Hub - - - - -

The Hub the device is attached to.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - -
- - - -
- - - -
-
-

<readonly> isVirtualPort

- - -
-
- - - - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) hub +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
isVirtualPort
hub - - -boolean - - - - -

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

-
+ + + + + Hub + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> mode

+ + + + + + + +

The Hub the device is attached to.

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) isVirtualPort +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
mode
isVirtualPort - - -number - - - - -

The mode the device is currently in

-
+ + + + + boolean + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> portName

+ + + + + + + +

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

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) mode +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
portName
mode - - -string - - - - -

The port the device is attached to.

-
+ + + + + number + - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
-
-

<readonly> type

+ + + + + + + +

The mode the device is currently in

+ + + + + + + - -
-
- - -
- -
Properties:
+ -
+ - - + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + + + + + + + + + + + + +

+ (readonly) portName +

+ + + + + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
type
portName - - -number - - - - -

The type of the device

+ + + + string + -
+

The port the device is attached to.

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

+ (readonly) type +

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

The type of the device

+
+ + + + +
+ + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -974,143 +1002,24 @@ -
- +
- - + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TachoMotor.html b/docs/TachoMotor.html index 480a81b..ead077f 100644 --- a/docs/TachoMotor.html +++ b/docs/TachoMotor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: TachoMotor - - + + - + + TachoMotor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: TachoMotor

-
+ + +
+ +

TachoMotor -

- + - + -
+
+
+ +

+ + TachoMotor + +

+ + + +
+ +
- + -
-
-

new TachoMotor()

- - -
-
- - + + + + + + + + +

+ new TachoMotor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,2716 +207,2509 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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:
-
- -
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-
-

brake()

- - -
-
- - -
-

Brake the motor.

-
- - - - - - - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

rampPower(fromPower, toPower, time)

- - -
-
- -
-

Ramp the motor power.

-
- +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeTypeDescriptionDescription
fromPower
hub - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ + + + Hub + -
toPower - - -number + + +

The Hub the device is attached to.

+

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

time - - -number - - - - -

How long the ramp should last (in milliseconds).

- - + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

rotateByDegrees(degrees [, speed])

- - -
-
- -
-

Rotate a motor by a given amount of degrees.

-
- +

+ (readonly) isVirtualPort +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + +
NameTypeDescription
isVirtualPort + + + + boolean + + + - TypeArgument +

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:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ brake() → {Promise} +

+
+ + + + + +
+

Brake the motor.

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

+ rampPower(fromPower, toPower, time) → {Promise} +

+
+ + + + + +
+

Ramp the motor power.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
fromPower + + + + number + + + + + + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
toPower + + + + number + + + + + + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
time + + + + number + + + + + + + +

How long the ramp should last (in milliseconds).

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

+ rotateByDegrees(degrees, speedopt) → {Promise} +

+
+ + + + + +
+

Rotate a motor by a given amount of degrees.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - - - - - - + + number + - - - - - - - - - - - - + + - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
NameTypeAttributesDefaultDescription
degreesDescription
+ - degrees - - -number - - - - - - - - - - - - -

How much the motor should be rotated (in degrees).

speed - - -number + + - - <optional>
- - - - - -
- - - 100 - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ + +

How much the motor should be rotated (in degrees).

+ +
speed + + + + number + + + + + + + + + <optional>
+ + + + + +
+ + 100 + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setAccelerationTime(time)

- - -
-
+ - -
-

Set the global acceleration time

-
- + + + + + + +

+ setAccelerationTime(time) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the global acceleration time

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
time + + + + number + -
time - - -number + +

How long acceleration should last (in milliseconds).

+

How long acceleration should last (in milliseconds).

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setBrakingStyle(style)

- - -
-
+ - -
-

Set the braking style of the motor.

+ + + + + + +

+ setBrakingStyle(style) +

+
+ + + + + +
+

Set the braking style of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

setDecelerationTime(time)

- - -
-
- - -
-

Set the global deceleration time

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
time - - -number - - - - -

How long deceleration should last (in milliseconds).

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +

+ setDecelerationTime(time) → {Promise} +

+
+ + + + + +
+

Set the global deceleration time

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + +
NameTypeDescription
time + -
-
-

setMaxPower(style)

- - -
-
+ + number + -
-

Set the max power of the motor.

+ + + +
+

How long deceleration should last (in milliseconds).

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

+ setMaxPower(style) +

+
+ + + + + +
+

Set the max power of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - - - - - -
-
-

setPower(power)

- - -
-
- - -
-

Set the motor power.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
power - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setSpeed(speed, time)

- - -
-
+ - -
-

Set the motor speed.

-
- + + + + + + +

+ setPower(power) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the motor power.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + number + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
power
+ - speed - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

time - - -number + +

How long the motor should run for (in milliseconds).

+

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
- - + + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
-
+ + - + - -
+ - - -
-
-

stop()

- - -
-
+ - -
-

Stop the motor.

-
- + - + - - - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + + + + + + + + + - -
- - + - + + + + + + +

+ setSpeed(speed, time) → {Promise} +

+
- -

Events

- -
- -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object + -
- - - -
Parameters:
- +
+

Set the motor speed.

+
- - + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
speed + + + + number + -
rotation - - -number + +
+

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
time + + + + number + + + + + + + +

How long the motor should run for (in milliseconds).

+ +
- - + + +
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
+ + + + + + + + + + + + + + + + + + + + + + + + +

+ stop() → {Promise} +

+
+ + + + + +
+

Stop the motor.

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

Events

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

+ rotate :object +

+
+ + + + + +
+

Emits when a rotation sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rotation + + + + number + - + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- -
- - - +
- - + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TechnicColorSensor.html b/docs/TechnicColorSensor.html index acdcaad..6bbaef6 100644 --- a/docs/TechnicColorSensor.html +++ b/docs/TechnicColorSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: TechnicColorSensor - - + + - + + TechnicColorSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: TechnicColorSensor

-
+ + +
+ +

TechnicColorSensor -

- + - + -
+
+
+ +

+ + TechnicColorSensor + +

+ + + +
+ +
- + -
-
-

new TechnicColorSensor()

- - -
-
- - + + + + + + + + +

+ new TechnicColorSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1576 +207,1469 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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:
-
- -
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-
-

setBrightness(firstSegment, secondSegment, thirdSegment)

- - -
-
- - -
-

Set the brightness (or turn on/off) of the lights around the sensor.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
firstSegment - - -number - - - - -

First light segment. 0-100 brightness.

secondSegment - - -number - - - - -

Second light segment. 0-100 brightness.

thirdSegment - - -number - - - - -

Third light segment. 0-100 brightness.

- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + - - -
- -
- - - - - -

Events

- -
-
-
-

ambient

- - -
-
- -
-

Emits when the ambient light changes.

-
- - - - - -
Type: -object +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
ambient
hub - - -number - - - - -

Percentage, from 0 to 100.

+ + + + Hub + -
+

The Hub the device is attached to.

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

color

- - -
-
- -
-

Emits when a color sensor is activated.

-
- - - - - -
Type: -object +

+ (readonly) isVirtualPort +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
color
isVirtualPort - - -Color - - - - -
+ + + + boolean + -
+

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

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

reflect

- - -
-
- -
-

Emits when the light reflectivity changes.

-
- - - - - -
Type: -object +

+ (readonly) mode +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
reflect
mode - - -number - - - - -

Percentage, from 0 to 100.

+ + + + number + -
+

The mode the device is currently in

+
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ setBrightness(firstSegment, secondSegment, thirdSegment) → {Promise} +

+
+ + + + + +
+

Set the brightness (or turn on/off) of the lights around the sensor.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
firstSegment + + + + number + + + + + + + +

First light segment. 0-100 brightness.

+ +
secondSegment + + + + number + + + + + + + +

Second light segment. 0-100 brightness.

+ +
thirdSegment + + + + number + + + + + + + +

Third light segment. 0-100 brightness.

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

Events

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

+ ambient :object +

+
+ + + + + +
+

Emits when the ambient light changes.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ambient + + + + number + + + + +

Percentage, from 0 to 100.

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

+ color :object +

+
+ + + + + +
+

Emits when a color sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
color + + + + Color + - - - - - + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ reflect :object +

+
+ + + + + +
+

Emits when the light reflectivity changes.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
reflect + + + + number + + + + + + + +

Percentage, from 0 to 100.

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
-
- + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TechnicDistanceSensor.html b/docs/TechnicDistanceSensor.html index 98966af..5d45886 100644 --- a/docs/TechnicDistanceSensor.html +++ b/docs/TechnicDistanceSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: TechnicDistanceSensor - - + + - + + TechnicDistanceSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: TechnicDistanceSensor

-
+ + +
+ +

TechnicDistanceSensor -

- + - + -
+
+
+ +

+ + TechnicDistanceSensor + +

+ + + +
+ +
- + -
-
-

new TechnicDistanceSensor()

- - -
-
- - + + + + + + + + +

+ new TechnicDistanceSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1456 +207,1352 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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:
-
- -
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-
-

setBrightness(topLeft, bottomLeft, topRight, bottomRight)

- - -
-
- - -
-

Set the brightness (or turn on/off) of the lights around the eyes.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
topLeft - - -number - - - - -

Top left quadrant (above left eye). 0-100 brightness.

bottomLeft - - -number - - - - -

Bottom left quadrant (below left eye). 0-100 brightness.

topRight - - -number - - - - -

Top right quadrant (above right eye). 0-100 brightness.

bottomRight - - -number - - - - -

Bottom right quadrant (below right eye). 0-100 brightness.

- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + - - -
- -
- - - - - -

Events

- -
-
-
-

distance

- - -
-
- -
-

Emits when the detected distance changes (Slow sampling covers 40mm to 2500mm).

-
- - - - - -
Type: -object +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
distance
hub - - -number - - - - -

Distance, from 40 to 2500mm

+ + + + Hub + -
+

The Hub the device is attached to.

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

fastDistance

- - -
-
- -
-

Emits when the detected distance changes (Fast sampling covers 50mm to 320mm).

-
- - - - - -
Type: -object +

+ (readonly) isVirtualPort +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
fastDistance
isVirtualPort - - -number - - - - -

Distance, from 50 to 320mm

+ + + + boolean + -
+

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

+
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ setBrightness(topLeft, bottomLeft, topRight, bottomRight) → {Promise} +

+
+ + + + + +
+

Set the brightness (or turn on/off) of the lights around the eyes.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
topLeft + + + + number + + + + + + + +

Top left quadrant (above left eye). 0-100 brightness.

+ +
bottomLeft + + + + number + + + + + + + +

Bottom left quadrant (below left eye). 0-100 brightness.

+ +
topRight + + + + number + + + + + + + +

Top right quadrant (above right eye). 0-100 brightness.

+ +
bottomRight + + + + number + + + + + + + +

Bottom right quadrant (below right eye). 0-100 brightness.

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

Events

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

+ distance :object +

+
+ + + + + +
+

Emits when the detected distance changes (Slow sampling covers 40mm to 2500mm).

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
distance + + + + number + + + + +

Distance, from 40 to 2500mm

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

+ fastDistance :object +

+
+ + + + + +
+

Emits when the detected distance changes (Fast sampling covers 50mm to 320mm).

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
fastDistance + + + + number + - - - - - + + +

Distance, from 50 to 320mm

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
-
- + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TechnicForceSensor.html b/docs/TechnicForceSensor.html index 8df77bd..51c8222 100644 --- a/docs/TechnicForceSensor.html +++ b/docs/TechnicForceSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: TechnicForceSensor - - + + - + + TechnicForceSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: TechnicForceSensor

-
+ + +
+ +

TechnicForceSensor -

- + - + -
+
+
+ +

+ + TechnicForceSensor + +

+ + + +
+ +
- + -
-
-

new TechnicForceSensor()

- - -
-
- - + + + + + + + + +

+ new TechnicForceSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1208 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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

- -
- -
-
-

force

- - -
-
- - -
-

Emits when force is applied.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
force - - -number - - - - -

Force, in newtons (0-10).

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

tapped

- - -
-
- -
-

Emits when the sensor is tapped.

-
- - - - - -
Type: -object +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
tapped
hub - - -number - - - - -

How hard the sensor was tapped, from 0-3.

+ + + + Hub + -
+

The Hub the device is attached to.

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

touch

- - -
-
- -
-

Emits when the sensor is touched.

-
- - - - - -
Type: -object +

+ (readonly) isVirtualPort +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
touch
isVirtualPort - - -boolean - - - - -

Touched on/off (boolean).

+ + + + boolean + -
+

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

+
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1400,153 +1002,466 @@ +

Events

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

+ force :object +

+
+ + + + + +
+

Emits when force is applied.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + +
NameTypeDescription
force + + + + number + - + + + +

Force, in newtons (0-10).

+ +
-
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

+ tapped :object +

+
+ + + + + +
+

Emits when the sensor is tapped.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + +
NameTypeDescription
tapped + + + + number + + + + + + + +

How hard the sensor was tapped, from 0-3.

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

+ touch :object +

+
+ + + + + +
+

Emits when the sensor is touched.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
touch + + + + boolean + + + + + + + +

Touched on/off (boolean).

+ +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
-
- + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TechnicLargeAngularMotor.html b/docs/TechnicLargeAngularMotor.html index 4d0bf7d..38f1d3a 100644 --- a/docs/TechnicLargeAngularMotor.html +++ b/docs/TechnicLargeAngularMotor.html @@ -1,2258 +1,2073 @@ - - - - node-poweredup Class: TechnicLargeAngularMotor - - + + - + + TechnicLargeAngularMotor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - - - -
-
- - -
- -
- - -

Class: TechnicLargeAngularMotor

-
- -
- -

- TechnicLargeAngularMotor -

- - -
- - -
-
- - -
-
-

new TechnicLargeAngularMotor()

- - -
-
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - -
- - -

Extends

- - + + + + + + +
+ +

+ TechnicLargeAngularMotor +

+ + +
+
+

+ + TechnicLargeAngularMotor + +

+ +
- +
+
+ + - - -

Methods

+ -
- -
-
-

gotoAngle(angle [, speed])

- - -
-
+ + + + + + +

+ new TechnicLargeAngularMotor() +

+
- -
-

Rotate a motor by a given angle.

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

Extends

+ + + + + + + + + -
Parameters:
+ + + + +

Methods

+ + - - + + + + + + + + + +

+ gotoAngle(angle, speedopt) → {Promise} +

+
+ + + + + +
+

Rotate a motor by a given angle.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - - - - - - + + number + - - - - - - - - - - - - + + - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
NameTypeTypeArgumentAttributesDefaultDescription
angleDescription
+ - angle - - -number - - - - - - - - - - - - -

Absolute position the motor should go to (degrees from 0).

speed - - -number + + - - <optional>
- - - - - -
- - - 100 - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ + +

Absolute position the motor should go to (degrees from 0).

+ +
speed + + + + number + + + + + + + + + <optional>
+ + + + + +
+ + 100 + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

gotoRealZero( [speed])

- - -
-
+ - -
-

Rotate motor to real zero position.

+ + + + + + +

+ gotoRealZero(speedopt) → {Promise} +

+
+ + + + + +
+

Rotate motor to real zero position.

Real zero is marked on Technic angular motors (SPIKE Prime). It is also available on Technic linear motors (Control+) but is unmarked.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - + - + + + + + + - - - - - - + <optional>
- - - - + + + + + + + + + + - +
NameTypeTypeArgumentAttributesDefaultDescription
speedDescription
+ + + + number + -
- speed - - -number - - - - - - - <optional>
- - - - - -
- - 100 - -

Speed between 1 - 100. Note that this will always take the shortest path to zero.

+ + 100 + + +

Speed between 1 - 100. Note that this will always take the shortest path to zero.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

resetZero()

- - -
-
+ + + + + + + + +

+ resetZero() → {Promise} +

+
+ + + + + +
+

Reset zero to current position

+
+ + + + + - -
-

Reset zero to current position

-
- - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

rotateByDegrees(degrees [, speed])

- - -
-
+ - -
-

Rotate a motor by a given amount of degrees.

-
- + + + + + + +

+ rotateByDegrees(degrees, speedopt) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Rotate a motor by a given amount of degrees.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - - - - - - + + number + - - - - - - - - - - - - + + - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
NameTypeTypeArgumentAttributesDefaultDescription
degreesDescription
+ - degrees - - -number - - - - - - - - - - - - -

How much the motor should be rotated (in degrees).

speed - - -number + + - - <optional>
- - - - - -
- - - 100 - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ + +

How much the motor should be rotated (in degrees).

+ +
speed + + + + number + + + + + + + + + <optional>
+ + + + + +
+ + 100 + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setAccelerationTime(time)

- - -
-
+ - -
-

Set the global acceleration time

-
- + + + + + + +

+ setAccelerationTime(time) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the global acceleration time

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
time + + + + number + -
time - - -number + +

How long acceleration should last (in milliseconds).

+

How long acceleration should last (in milliseconds).

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setBrakingStyle(style)

- - -
-
+ - -
-

Set the braking style of the motor.

+ + + + + + +

+ setBrakingStyle(style) +

+
+ + + + + +
+

Set the braking style of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setDecelerationTime(time)

- - -
-
- - -
-

Set the global deceleration time

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
time - - -number - - - - -

How long deceleration should last (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +

+ setDecelerationTime(time) → {Promise} +

+
+ + + + + +
+

Set the global deceleration time

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + +
NameTypeDescription
time + -
-
-

setMaxPower(style)

- - -
-
+ + number + -
-

Set the max power of the motor.

+ + + +
+

How long deceleration should last (in milliseconds).

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

+ setMaxPower(style) +

+
+ + + + + +
+

Set the max power of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setSpeed(speed, time)

- - -
-
- - -
-

Set the motor speed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
speed - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

time - - -number - - - - -

How long the motor should run for (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - + - + + + + + + +

+ setSpeed(speed, time) → {Promise} +

+
- -

Events

- -
- -
-
-

absolute

- - -
-
- - -
-

Emits when a the motors absolute position is changed.

-
- - - - - -
Type: -object + -
- - - -
Parameters:
- +
+

Set the motor speed.

+
- - + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
speed + + + + number + -
absolute - - -number + +
+

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
time + + + + number + + + + + + + +

How long the motor should run for (in milliseconds).

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

Events

- - - - - - - -
- - - -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
+ - - + + + + + + + + + +

+ absolute :object +

+
+ + + + + +
+

Emits when a the motors absolute position is changed.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
absolute + + + + number + -
rotation - - -number + +
+ + +
- - + + +
- - + - + - -
Inherited From:
-
- -
- + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
+ + + + + + + + + + + + + + + + + + + + + + + + +

+ rotate :object +

+
+ + + + + +
+

Emits when a rotation sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rotation + + + + number + - + + + + + +
+ + + + +
+ + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + - - - - -
- -
- -
- +
-
-
+
-
+
- -
- -
- + -
- - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TechnicLargeLinearMotor.html b/docs/TechnicLargeLinearMotor.html index b124ec9..7a421ea 100644 --- a/docs/TechnicLargeLinearMotor.html +++ b/docs/TechnicLargeLinearMotor.html @@ -1,2258 +1,2073 @@ - - - - node-poweredup Class: TechnicLargeLinearMotor - - + + - + + TechnicLargeLinearMotor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - - - -
-
- - -
- -
- - -

Class: TechnicLargeLinearMotor

-
- -
- -

- TechnicLargeLinearMotor -

- - -
- - -
-
- - -
-
-

new TechnicLargeLinearMotor()

- - -
-
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - -
- - -

Extends

- - + + + + + + +
+ +

+ TechnicLargeLinearMotor +

+ + +
+
+

+ + TechnicLargeLinearMotor + +

+ +
- +
+
+ + - - -

Methods

+ -
- -
-
-

gotoAngle(angle [, speed])

- - -
-
+ + + + + + +

+ new TechnicLargeLinearMotor() +

+
- -
-

Rotate a motor by a given angle.

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

Extends

+ + + + + + + + + -
Parameters:
+ + + + +

Methods

+ + - - + + + + + + + + + +

+ gotoAngle(angle, speedopt) → {Promise} +

+
+ + + + + +
+

Rotate a motor by a given angle.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - - - - - - + + number + - - - - - - - - - - - - + + - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
NameTypeTypeArgumentAttributesDefaultDescription
angleDescription
+ - angle - - -number - - - - - - - - - - - - -

Absolute position the motor should go to (degrees from 0).

speed - - -number + + - - <optional>
- - - - - -
- - - 100 - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ + +

Absolute position the motor should go to (degrees from 0).

+ +
speed + + + + number + + + + + + + + + <optional>
+ + + + + +
+ + 100 + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

gotoRealZero( [speed])

- - -
-
+ - -
-

Rotate motor to real zero position.

+ + + + + + +

+ gotoRealZero(speedopt) → {Promise} +

+
+ + + + + +
+

Rotate motor to real zero position.

Real zero is marked on Technic angular motors (SPIKE Prime). It is also available on Technic linear motors (Control+) but is unmarked.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - + - + + + + + + - - - - - - + <optional>
- - - - + + + + + + + + + + - +
NameTypeTypeArgumentAttributesDefaultDescription
speedDescription
+ + + + number + -
- speed - - -number - - - - - - - <optional>
- - - - - -
- - 100 - -

Speed between 1 - 100. Note that this will always take the shortest path to zero.

+ + 100 + + +

Speed between 1 - 100. Note that this will always take the shortest path to zero.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

resetZero()

- - -
-
+ + + + + + + + +

+ resetZero() → {Promise} +

+
+ + + + + +
+

Reset zero to current position

+
+ + + + + - -
-

Reset zero to current position

-
- - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

rotateByDegrees(degrees [, speed])

- - -
-
+ - -
-

Rotate a motor by a given amount of degrees.

-
- + + + + + + +

+ rotateByDegrees(degrees, speedopt) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Rotate a motor by a given amount of degrees.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - - - - - - + + number + - - - - - - - - - - - - + + - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
NameTypeTypeArgumentAttributesDefaultDescription
degreesDescription
+ - degrees - - -number - - - - - - - - - - - - -

How much the motor should be rotated (in degrees).

speed - - -number + + - - <optional>
- - - - - -
- - - 100 - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ + +

How much the motor should be rotated (in degrees).

+ +
speed + + + + number + + + + + + + + + <optional>
+ + + + + +
+ + 100 + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setAccelerationTime(time)

- - -
-
+ - -
-

Set the global acceleration time

-
- + + + + + + +

+ setAccelerationTime(time) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the global acceleration time

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
time + + + + number + -
time - - -number + +

How long acceleration should last (in milliseconds).

+

How long acceleration should last (in milliseconds).

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setBrakingStyle(style)

- - -
-
+ - -
-

Set the braking style of the motor.

+ + + + + + +

+ setBrakingStyle(style) +

+
+ + + + + +
+

Set the braking style of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setDecelerationTime(time)

- - -
-
- - -
-

Set the global deceleration time

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
time - - -number - - - - -

How long deceleration should last (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +

+ setDecelerationTime(time) → {Promise} +

+
+ + + + + +
+

Set the global deceleration time

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + +
NameTypeDescription
time + -
-
-

setMaxPower(style)

- - -
-
+ + number + -
-

Set the max power of the motor.

+ + + +
+

How long deceleration should last (in milliseconds).

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

+ setMaxPower(style) +

+
+ + + + + +
+

Set the max power of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setSpeed(speed, time)

- - -
-
- - -
-

Set the motor speed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
speed - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

time - - -number - - - - -

How long the motor should run for (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - + - + + + + + + +

+ setSpeed(speed, time) → {Promise} +

+
- -

Events

- -
- -
-
-

absolute

- - -
-
- - -
-

Emits when a the motors absolute position is changed.

-
- - - - - -
Type: -object + -
- - - -
Parameters:
- +
+

Set the motor speed.

+
- - + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
speed + + + + number + -
absolute - - -number + +
+

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
time + + + + number + + + + + + + +

How long the motor should run for (in milliseconds).

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

Events

- - - - - - - -
- - - -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
+ - - + + + + + + + + + +

+ absolute :object +

+
+ + + + + +
+

Emits when a the motors absolute position is changed.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
absolute + + + + number + -
rotation - - -number + +
+ + +
- - + + +
- - + - + - -
Inherited From:
-
- -
- + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
+ + + + + + + + + + + + + + + + + + + + + + + + +

+ rotate :object +

+
+ + + + + +
+

Emits when a rotation sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rotation + + + + number + - + + + + + +
+ + + + +
+ + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + - - - - -
- -
- -
- +
-
-
+
-
+
- -
- -
- + -
- - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TechnicMediumAngularMotor.html b/docs/TechnicMediumAngularMotor.html index 1104d29..c8d1c8f 100644 --- a/docs/TechnicMediumAngularMotor.html +++ b/docs/TechnicMediumAngularMotor.html @@ -1,2258 +1,2073 @@ - - - - node-poweredup Class: TechnicMediumAngularMotor - - + + - + + TechnicMediumAngularMotor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - - - -
-
- - -
- -
- - -

Class: TechnicMediumAngularMotor

-
- -
- -

- TechnicMediumAngularMotor -

- - -
- - -
-
- - -
-
-

new TechnicMediumAngularMotor()

- - -
-
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - -
- - -

Extends

- - + + + + + + +
+ +

+ TechnicMediumAngularMotor +

+ + +
+
+

+ + TechnicMediumAngularMotor + +

+ +
- +
+
+ + - - -

Methods

+ -
- -
-
-

gotoAngle(angle [, speed])

- - -
-
+ + + + + + +

+ new TechnicMediumAngularMotor() +

+
- -
-

Rotate a motor by a given angle.

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

Extends

+ + + + + + + + + -
Parameters:
+ + + + +

Methods

+ + - - + + + + + + + + + +

+ gotoAngle(angle, speedopt) → {Promise} +

+
+ + + + + +
+

Rotate a motor by a given angle.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - - - - - - + + number + - - - - - - - - - - - - + + - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
NameTypeTypeArgumentAttributesDefaultDescription
angleDescription
+ - angle - - -number - - - - - - - - - - - - -

Absolute position the motor should go to (degrees from 0).

speed - - -number + + - - <optional>
- - - - - -
- - - 100 - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ + +

Absolute position the motor should go to (degrees from 0).

+ +
speed + + + + number + + + + + + + + + <optional>
+ + + + + +
+ + 100 + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

gotoRealZero( [speed])

- - -
-
+ - -
-

Rotate motor to real zero position.

+ + + + + + +

+ gotoRealZero(speedopt) → {Promise} +

+
+ + + + + +
+

Rotate motor to real zero position.

Real zero is marked on Technic angular motors (SPIKE Prime). It is also available on Technic linear motors (Control+) but is unmarked.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - + - + + + + + + - - - - - - + <optional>
- - - - + + + + + + + + + + - +
NameTypeTypeArgumentAttributesDefaultDescription
speedDescription
+ + + + number + -
- speed - - -number - - - - - - - <optional>
- - - - - -
- - 100 - -

Speed between 1 - 100. Note that this will always take the shortest path to zero.

+ + 100 + + +

Speed between 1 - 100. Note that this will always take the shortest path to zero.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

resetZero()

- - -
-
+ + + + + + + + +

+ resetZero() → {Promise} +

+
+ + + + + +
+

Reset zero to current position

+
+ + + + + - -
-

Reset zero to current position

-
- - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

rotateByDegrees(degrees [, speed])

- - -
-
+ - -
-

Rotate a motor by a given amount of degrees.

-
- + + + + + + +

+ rotateByDegrees(degrees, speedopt) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Rotate a motor by a given amount of degrees.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - - - - - - + + number + - - - - - - - - - - - - + + - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
NameTypeTypeArgumentAttributesDefaultDescription
degreesDescription
+ - degrees - - -number - - - - - - - - - - - - -

How much the motor should be rotated (in degrees).

speed - - -number + + - - <optional>
- - - - - -
- - - 100 - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ + +

How much the motor should be rotated (in degrees).

+ +
speed + + + + number + + + + + + + + + <optional>
+ + + + + +
+ + 100 + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setAccelerationTime(time)

- - -
-
+ - -
-

Set the global acceleration time

-
- + + + + + + +

+ setAccelerationTime(time) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the global acceleration time

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
time + + + + number + -
time - - -number + +

How long acceleration should last (in milliseconds).

+

How long acceleration should last (in milliseconds).

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setBrakingStyle(style)

- - -
-
+ - -
-

Set the braking style of the motor.

+ + + + + + +

+ setBrakingStyle(style) +

+
+ + + + + +
+

Set the braking style of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setDecelerationTime(time)

- - -
-
- - -
-

Set the global deceleration time

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
time - - -number - - - - -

How long deceleration should last (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +

+ setDecelerationTime(time) → {Promise} +

+
+ + + + + +
+

Set the global deceleration time

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + +
NameTypeDescription
time + -
-
-

setMaxPower(style)

- - -
-
+ + number + -
-

Set the max power of the motor.

+ + + +
+

How long deceleration should last (in milliseconds).

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

+ setMaxPower(style) +

+
+ + + + + +
+

Set the max power of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setSpeed(speed, time)

- - -
-
- - -
-

Set the motor speed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
speed - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

time - - -number - - - - -

How long the motor should run for (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - + - + + + + + + +

+ setSpeed(speed, time) → {Promise} +

+
- -

Events

- -
- -
-
-

absolute

- - -
-
- - -
-

Emits when a the motors absolute position is changed.

-
- - - - - -
Type: -object + -
- - - -
Parameters:
- +
+

Set the motor speed.

+
- - + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
speed + + + + number + -
absolute - - -number + +
+

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
time + + + + number + + + + + + + +

How long the motor should run for (in milliseconds).

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

Events

- - - - - - - -
- - - -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
+ - - + + + + + + + + + +

+ absolute :object +

+
+ + + + + +
+

Emits when a the motors absolute position is changed.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
absolute + + + + number + -
rotation - - -number + +
+ + +
- - + + +
- - + - + - -
Inherited From:
-
- -
- + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
+ + + + + + + + + + + + + + + + + + + + + + + + +

+ rotate :object +

+
+ + + + + +
+

Emits when a rotation sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rotation + + + + number + - + + + + + +
+ + + + +
+ + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + - - - - -
- -
- -
- +
-
-
+
-
+
- -
- -
- + -
- - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TechnicMediumHub.html b/docs/TechnicMediumHub.html index 6700cbc..cfb6484 100644 --- a/docs/TechnicMediumHub.html +++ b/docs/TechnicMediumHub.html @@ -1,194 +1,210 @@ - - - - node-poweredup Class: TechnicMediumHub - - + + - + + TechnicMediumHub - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: TechnicMediumHub

-
+ + +
+ +

TechnicMediumHub -

- + - + -
+
+
+ +

+ + TechnicMediumHub + +

+ + + +
+ +
- + -
-
-

new TechnicMediumHub()

- - -
-
- -
-

The TechnicMediumHub is emitted if the discovered device is a Technic Medium Hub.

-
- - + + + + + + + + +

+ new TechnicMediumHub() +

+
+ + + + + +
+

The TechnicMediumHub is emitted if the discovered device is a Technic Medium Hub.

+
+ + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -197,2022 +213,1841 @@ - +

Members

-
+ -
-
-

<readonly> batteryLevel

- -
-
- +

+ (readonly) batteryLevel +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
batteryLevel - - -number - - - - -

Battery level of the hub (Percentage between 0-100)

-
- - - - - - - - -
Inherited From:
-
- -
- - - -
Overrides:
-
- - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> firmwareVersion

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NamebatteryLevelType + + + + number + + + + + + + Description +

Battery level of the hub (Percentage between 0-100)

+
firmwareVersion - - -string - - - - -

Firmware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - -
Overrides:
-
- - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - -
- - - -
- - - -
-
-

<readonly> hardwareVersion

- - -
-
- - - - -
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
hardwareVersion - - -string - - - - -

Hardware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- -
+ + + + -
-
-

<readonly> name

+

+ (readonly) firmwareVersion +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
firmwareVersion + + + + string + - + + + +

Firmware version of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
name - - -string - - - - -

Name of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> ports

+

+ (readonly) hardwareVersion +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
hardwareVersion + + + + string + - + + + +

Hardware version of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
ports - - -Array.<string> - - - - -

Array of port names

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> primaryMACAddress

+

+ (readonly) name +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + - + + + +

Name of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
primaryMACAddress - - -string - - - - -

Primary MAC address of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> rssi

+

+ (readonly) ports +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
ports + + + + Array.<string> + - + + + +

Array of port names

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rssi - - -number - - - - -

Signal strength of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> type

+

+ (readonly) primaryMACAddress +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
primaryMACAddress + + + + string + - + + + +

Primary MAC address of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
type - - -string - - - - -

Hub type

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - + + + + -
-
-

<readonly> uuid

+

+ (readonly) rssi +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - -
- + +
+ + + + + + + + + + + + + + + +
NameTypeDescription
rssi + + + + number + - + + + +

Signal strength of the hub

+
+ + + +
- -
Properties:
+ -
+ - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
uuid - - -string - - - - -

UUID of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - +
Overrides:
-
- +
+ +
+ - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - -
- - -

Methods

-
+ + + -
-
-

createVirtualPort(firstPortName, secondPortName)

+ +

+ (readonly) type +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + - - -
+ +
+ + + + + + + + + + + + + + + +
NameTypeDescription
type + + + + string + -
-

Combines two ports with into a single virtual port.

+ + + +
+

Hub type

+
+ + + + +
+ + + + + + + + +
Overrides:
+
+ +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + +

+ (readonly) uuid +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
uuid + + + + string + + + + + + + +

UUID of the hub

+
+ + + + +
+ + + + + + + + +
Overrides:
+
+ +
+ + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ createVirtualPort(firstPortName, secondPortName) → {Promise} +

+
+ + + + + +
+

Combines two ports with into a single virtual port.

Note: The devices attached to the ports must be of the same device type.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
firstPortName
+ - firstPortName - - -string - - - - -

First port name

secondPortName - - -string + +

Second port name

+

First port name

+ +
secondPortName + + + + string + + + + + + + +

Second port name

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - - - - -
-
-

setName(name)

- - -
-
+ - -
-

Set the name of the Hub.

-
- + + + + + + +

+ setName(name) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the name of the Hub.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
name + + + + string + -
name - - -string + +

New name of the hub (14 characters or less, ASCII only).

+

New name of the hub (14 characters or less, ASCII only).

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

shutdown()

- - -
-
+ + + + + + + + +

+ shutdown() → {Promise} +

+
+ + + + + +
+

Shutdown the Hub.

+
+ + + + + - -
-

Shutdown the Hub.

-
- - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful disconnect.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + +

Events

+ + - -
- - + - + + + + + + +

+ button +

+
- -

Events

+ -
- -
-
-

button

- - -
-
- -
-

Emits when a button is pressed.

-
- - +
+

Emits when a button is pressed.

+
- - - -
Parameters:
- - - + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + - + + + + + - + - - - - - - - - - - + + string + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
button
+ - button - - -string - - - - -
state - - -ButtonState + +
+ + +
state + + + + ButtonState + + + + + + + + + +
- - + + +
- - + - + - -
Inherited From:
-
- -
- + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
-
- - + + + + + + +
- - + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TechnicMediumHubAccelerometerSensor.html b/docs/TechnicMediumHubAccelerometerSensor.html index 87dbddf..410aaa6 100644 --- a/docs/TechnicMediumHubAccelerometerSensor.html +++ b/docs/TechnicMediumHubAccelerometerSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: TechnicMediumHubAccelerometerSensor - - + + - + + TechnicMediumHubAccelerometerSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: TechnicMediumHubAccelerometerSensor

-
+ + +
+ +

TechnicMediumHubAccelerometerSensor -

- + - + -
+
+
+ +

+ + TechnicMediumHubAccelerometerSensor + +

+ + + +
+ +
- + -
-
-

new TechnicMediumHubAccelerometerSensor()

- - -
-
- - + + + + + + + + +

+ new TechnicMediumHubAccelerometerSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,968 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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 - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1160,153 +1002,232 @@ +

Events

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

+ accel :object +

+
+ + + + + +
+

Emits when accelerometer detects movement. Measured in mG.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + + + number + - + + + + + +
y + + + + number + - - + + + + + +
z + + + + number + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
-
- + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TechnicMediumHubGyroSensor.html b/docs/TechnicMediumHubGyroSensor.html index b70f383..dc2822d 100644 --- a/docs/TechnicMediumHubGyroSensor.html +++ b/docs/TechnicMediumHubGyroSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: TechnicMediumHubGyroSensor - - + + - + + TechnicMediumHubGyroSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: TechnicMediumHubGyroSensor

-
+ + +
+ +

TechnicMediumHubGyroSensor -

- + - + -
+
+
+ +

+ + TechnicMediumHubGyroSensor + +

+ + + +
+ +
- + -
-
-

new TechnicMediumHubGyroSensor()

- - -
-
- - + + + + + + + + +

+ new TechnicMediumHubGyroSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,968 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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

- -
- -
-
-

gyro

- - -
-
- - -
-

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
x - - -number - - - - -
y - - -number - - - - -
z - - -number - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1160,153 +1002,232 @@ +

Events

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

+ gyro :object +

+
+ + + + + +
+

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + + + number + - + + + + + +
y + + + + number + - - + + + + + +
z + + + + number + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
-
- + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TechnicMediumHubTiltSensor.html b/docs/TechnicMediumHubTiltSensor.html index f096d11..4c92008 100644 --- a/docs/TechnicMediumHubTiltSensor.html +++ b/docs/TechnicMediumHubTiltSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: TechnicMediumHubTiltSensor - - + + - + + TechnicMediumHubTiltSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: TechnicMediumHubTiltSensor

-
+ + +
+ +

TechnicMediumHubTiltSensor -

- + - + -
+
+
+ +

+ + TechnicMediumHubTiltSensor + +

+ + + +
+ +
- + -
-
-

new TechnicMediumHubTiltSensor()

- - -
-
- - + + + + + + + + +

+ new TechnicMediumHubTiltSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,968 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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

- -
- -
-
-

tilt

- - -
-
- - -
-

Emits when a tilt sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
x - - -number - - - - -
y - - -number - - - - -
z - - -number - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1160,153 +1002,232 @@ +

Events

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

+ tilt :object +

+
+ + + + + +
+

Emits when a tilt sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + + + number + - + + + + + +
y + + + + number + - - + + + + + +
z + + + + number + + + + + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
-
- + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TechnicXLargeLinearMotor.html b/docs/TechnicXLargeLinearMotor.html index 0e96e90..785b31b 100644 --- a/docs/TechnicXLargeLinearMotor.html +++ b/docs/TechnicXLargeLinearMotor.html @@ -1,2258 +1,2073 @@ - - - - node-poweredup Class: TechnicXLargeLinearMotor - - + + - + + TechnicXLargeLinearMotor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - - - -
-
- - -
- -
- - -

Class: TechnicXLargeLinearMotor

-
- -
- -

- TechnicXLargeLinearMotor -

- - -
- - -
-
- - -
-
-

new TechnicXLargeLinearMotor()

- - -
-
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - -
- - -

Extends

- - + + + + + + +
+ +

+ TechnicXLargeLinearMotor +

+ + +
+
+

+ + TechnicXLargeLinearMotor + +

+ +
- +
+
+ + - - -

Methods

+ -
- -
-
-

gotoAngle(angle [, speed])

- - -
-
+ + + + + + +

+ new TechnicXLargeLinearMotor() +

+
- -
-

Rotate a motor by a given angle.

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

Extends

+ + + + + + + + + -
Parameters:
+ + + + +

Methods

+ + - - + + + + + + + + + +

+ gotoAngle(angle, speedopt) → {Promise} +

+
+ + + + + +
+

Rotate a motor by a given angle.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - - - - - - + + number + - - - - - - - - - - - - + + - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
NameTypeTypeArgumentAttributesDefaultDescription
angleDescription
+ - angle - - -number - - - - - - - - - - - - -

Absolute position the motor should go to (degrees from 0).

speed - - -number + + - - <optional>
- - - - - -
- - - 100 - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ + +

Absolute position the motor should go to (degrees from 0).

+ +
speed + + + + number + + + + + + + + + <optional>
+ + + + + +
+ + 100 + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

gotoRealZero( [speed])

- - -
-
+ - -
-

Rotate motor to real zero position.

+ + + + + + +

+ gotoRealZero(speedopt) → {Promise} +

+
+ + + + + +
+

Rotate motor to real zero position.

Real zero is marked on Technic angular motors (SPIKE Prime). It is also available on Technic linear motors (Control+) but is unmarked.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - + - + + + + + + - - - - - - + <optional>
- - - - + + + + + + + + + + - +
NameTypeTypeArgumentAttributesDefaultDescription
speedDescription
+ + + + number + -
- speed - - -number - - - - - - - <optional>
- - - - - -
- - 100 - -

Speed between 1 - 100. Note that this will always take the shortest path to zero.

+ + 100 + + +

Speed between 1 - 100. Note that this will always take the shortest path to zero.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

resetZero()

- - -
-
+ + + + + + + + +

+ resetZero() → {Promise} +

+
+ + + + + +
+

Reset zero to current position

+
+ + + + + - -
-

Reset zero to current position

-
- - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

rotateByDegrees(degrees [, speed])

- - -
-
+ - -
-

Rotate a motor by a given amount of degrees.

-
- + + + + + + +

+ rotateByDegrees(degrees, speedopt) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Rotate a motor by a given amount of degrees.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - - - + + + - + + + + + + + + + + + + - - - - - - - - + - - - - - - - - - - - - - - + + number + - - - - - - - - - - - - + + - - - + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + +
NameTypeTypeArgumentAttributesDefaultDescription
degreesDescription
+ - degrees - - -number - - - - - - - - - - - - -

How much the motor should be rotated (in degrees).

speed - - -number + + - - <optional>
- - - - - -
- - - 100 - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ + +

How much the motor should be rotated (in degrees).

+ +
speed + + + + number + + + + + + + + + <optional>
+ + + + + +
+ + 100 + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100.

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setAccelerationTime(time)

- - -
-
+ - -
-

Set the global acceleration time

-
- + + + + + + +

+ setAccelerationTime(time) → {Promise} +

+
- + - - - -
Parameters:
- - - +
+

Set the global acceleration time

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
time + + + + number + -
time - - -number + +

How long acceleration should last (in milliseconds).

+

How long acceleration should last (in milliseconds).

+ +
- - + + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - -
-
-

setBrakingStyle(style)

- - -
-
+ - -
-

Set the braking style of the motor.

+ + + + + + +

+ setBrakingStyle(style) +

+
+ + + + + +
+

Set the braking style of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setDecelerationTime(time)

- - -
-
- - -
-

Set the global deceleration time

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
time - - -number - - - - -

How long deceleration should last (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command (ie. once the motor is finished).

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + +

+ setDecelerationTime(time) → {Promise} +

+
+ + + + + +
+

Set the global deceleration time

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + +
NameTypeDescription
time + -
-
-

setMaxPower(style)

- - -
-
+ + number + -
-

Set the max power of the motor.

+ + + +
+

How long deceleration should last (in milliseconds).

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

+ setMaxPower(style) +

+
+ + + + + +
+

Set the max power of the motor.

Note: This applies to setSpeed, rotateByDegrees, and gotoAngle.

-
- +
- - - - -
Parameters:
- - - + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
style + + + + number + -
style - - -number + +

Either BRAKE or HOLD

+

Either BRAKE or HOLD

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

setSpeed(speed, time)

- - -
-
- - -
-

Set the motor speed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
speed - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

time - - -number - - - - -

How long the motor should run for (in milliseconds).

- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
+ + + + + + + + + + + + + - -
- - + - + + + + + + +

+ setSpeed(speed, time) → {Promise} +

+
- -

Events

- -
- -
-
-

absolute

- - -
-
- - -
-

Emits when a the motors absolute position is changed.

-
- - - - - -
Type: -object + -
- - - -
Parameters:
- +
+

Set the motor speed.

+
- - + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - + + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
speed + + + + number + -
absolute - - -number + +
+

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
time + + + + number + + + + + + + +

How long the motor should run for (in milliseconds).

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

Events

- - - - - - - -
- - - -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
+ - - + + + + + + + + + +

+ absolute :object +

+
+ + + + + +
+

Emits when a the motors absolute position is changed.

+
+ + + + + + + +
Parameters:
+ + +
+ - + - + - + - + - + - + - + + + + + + + + + + - - - - - + + - - - - - - - - - + + - +
NameTypeTypeDescriptionDescription
absolute + + + + number + -
rotation - - -number + +
+ + +
- - + + +
- - + - + - -
Inherited From:
-
- -
- + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
+ + + + + + + + + + + + + + + + + + + + + + + + +

+ rotate :object +

+
+ + + + + +
+

Emits when a rotation sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rotation + + + + number + - + + + + + +
+ + + + +
+ + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + - - - - -
- -
- -
- +
-
-
+
-
+
- -
- -
- + -
- - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TiltSensor.html b/docs/TiltSensor.html index 08a8e9e..c7d479b 100644 --- a/docs/TiltSensor.html +++ b/docs/TiltSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: TiltSensor - - + + - + + TiltSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: TiltSensor

-
+ + +
+ +

TiltSensor -

- + - + -
+
+
+ +

+ + TiltSensor + +

+ + + +
+ +
- + -
-
-

new TiltSensor()

- - -
-
- - + + + + + + + + +

+ new TiltSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,944 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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

- -
- -
-
-

tilt

- - -
-
- - -
-

Emits when a tilt sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
x - - -number - - - - -
y - - -number - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1136,153 +1002,203 @@ +

Events

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

+ tilt :object +

+
+ + + + + +
+

Emits when a tilt sensor is activated.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + +
NameTypeDescription
x + + + + number + - + + + + + +
y + + + + number + - - + + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
-
- + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/TrainMotor.html b/docs/TrainMotor.html index bd8b881..b53e8ca 100644 --- a/docs/TrainMotor.html +++ b/docs/TrainMotor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: TrainMotor - - + + - + + TrainMotor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: TrainMotor

-
+ + +
+ +

TrainMotor -

- + - + -
+
+
+ +

+ + TrainMotor + +

+ + + +
+ +
- + -
-
-

new TrainMotor()

- - -
-
- - + + + + + + + + +

+ new TrainMotor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,1562 +207,1391 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - + +
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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:
-
- -
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-
-

brake()

- - -
-
- - -
-

Brake the motor.

-
- - - - - - - - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

rampPower(fromPower, toPower, time)

- - -
-
- -
-

Ramp the motor power.

-
- +

+ (readonly) hub +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeTypeDescriptionDescription
fromPower
hub - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ + + + Hub + -
toPower - - -number + + +

The Hub the device is attached to.

+

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

time - - -number - - - - -

How long the ramp should last (in milliseconds).

- - + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful completion of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

setPower(power)

- - -
-
- -
-

Set the motor power.

-
- +

+ (readonly) isVirtualPort +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + + + + + + + + + + + + + + +
NameTypeTypeDescriptionDescription
power
isVirtualPort - - -number - - - - -

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ + + + boolean + -
+

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

+
- - + +
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + +
- - -
+ + + -
-
-

stop()

- - -
-
+

+ (readonly) mode +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + -
-

Stop the motor.

-
- + + + + + + + + + + + + + + + + + +
NameTypeDescription
mode + + + + number + - - - + + +

The mode the device is currently in

+
+ + + -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of the command.

-
- - - -
-
- Type -
-
- -Promise + + + +
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:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + +

Methods

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

+ brake() → {Promise} +

+
+ + + + + +
+

Brake the motor.

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

+ rampPower(fromPower, toPower, time) → {Promise} +

+
+ + + + + +
+

Ramp the motor power.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
fromPower + + + + number + + + + + + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
toPower + + + + number + + + + + + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

+ +
time + + + + number + + + + + + + +

How long the ramp should last (in milliseconds).

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

+ setPower(power) → {Promise} +

+
+ + + + + +
+

Set the motor power.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
power + + + + number + + + + + + + +

For forward, a value between 1 - 100 should be set. For reverse, a value between -1 to -100. Stop is 0.

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

+ stop() → {Promise} +

+
+ + + + + +
+

Stop the motor.

+
+ + + + + + + + + + +
+ + + + + + +
Inherited From:
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- +
- - + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/VoltageSensor.html b/docs/VoltageSensor.html index 177fb90..bc767f9 100644 --- a/docs/VoltageSensor.html +++ b/docs/VoltageSensor.html @@ -1,188 +1,204 @@ - - - - node-poweredup Class: VoltageSensor - - + + - + + VoltageSensor - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: VoltageSensor

-
+ + +
+ +

VoltageSensor -

- + - + -
+
+
+ +

+ + VoltageSensor + +

+ + + +
+ +
- + -
-
-

new VoltageSensor()

- - -
-
- - + + + + + + + + +

+ new VoltageSensor() +

+
+ + + + + + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -191,920 +207,794 @@ - +

Members

-
+ -
-
-

<readonly> connected

- -
-
- +

+ (readonly) connected +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
connected - - -boolean - - - - -

Check if the device is still attached.

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hub

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NameconnectedType + + + + boolean + + + + + + + Description +

Check if the device is still attached.

+
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

- -
- -
-
-

voltage

- - -
-
- - -
-

Emits when a voltage change is detected.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
voltage - - -number - - - - -
- - + +
- - + - + - + +
Inherited From:
+
+ +
+ - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
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:
+
+ +
+ + + + + + + +
+ + + + + + + + @@ -1112,153 +1002,174 @@ +

Events

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

+ voltage :object +

+
+ + + + + +
+

Emits when a voltage change is detected.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + +
NameTypeDescription
voltage + + + + number + - + + + + + +
-
+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + -
- +
- - + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/WeDo2SmartHub.html b/docs/WeDo2SmartHub.html index 38f4a6d..5ce9d6c 100644 --- a/docs/WeDo2SmartHub.html +++ b/docs/WeDo2SmartHub.html @@ -1,192 +1,208 @@ - - - - node-poweredup Class: WeDo2SmartHub - - + + - + + WeDo2SmartHub - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
-

Class: WeDo2SmartHub

-
+ + +
+ +

WeDo2SmartHub -

- + - + -
+
+
+ +

+ + WeDo2SmartHub + +

+ + + +
+ +
- + -
-
-

new WeDo2SmartHub()

- - -
-
- -
-

The WeDo2SmartHub is emitted if the discovered device is a WeDo 2.0 Smart Hub.

-
- - + + + + + + + + +

+ new WeDo2SmartHub() +

+
+ + + + + +
+

The WeDo2SmartHub is emitted if the discovered device is a WeDo 2.0 Smart Hub.

+
+ + + + + + + - - - -
- - + - + - + - + - + - + - + - + - + - + - + - + + +
Source:
+
+ +
+ + - -
Source:
-
- -
- + - - - - - +
- - - - - - - -
- + + + + + +
-

Extends

+

Extends

- + - + @@ -195,1754 +211,1629 @@ - +

Members

-
+ -
-
-

<readonly> batteryLevel

- -
-
- +

+ (readonly) batteryLevel +

- - -
- -
Properties:
-
- - + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - -
NameTypeTypeDescriptionDescription
batteryLevel - - -number - - - - -

Battery level of the hub (Percentage between 0-100)

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> firmwareVersion

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - + + + - + - + - - - - - - - - - - - - - - - - - - - - -
NamebatteryLevelType + + + + number + + + + + + + Description +

Battery level of the hub (Percentage between 0-100)

+
firmwareVersion - - -string - - - - -

Firmware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> hardwareVersion

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
hardwareVersion - - -string - - - - -

Hardware version of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> name

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
name - - -string - - - - -

Name of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> ports

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
ports - - -Array.<string> - - - - -

Array of port names

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> primaryMACAddress

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
primaryMACAddress - - -string - - - - -

Primary MAC address of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> rssi

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rssi - - -number - - - - -

Signal strength of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> type

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
type - - -string - - - - -

Hub type

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- - - -
-
-

<readonly> uuid

- - -
-
- - - - - -
- - -
Properties:
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
uuid - - -string - - - - -

UUID of the hub

-
- - - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - -
- -
- - - -

Methods

- -
- -
-
-

setName(name)

- - -
-
- - -
-

Set the name of the Hub.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
NameTypeDescription
name - - -string - - - - -

New name of the hub (14 characters or less, ASCII only).

- - + +
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful issuance of command.

-
- - - -
-
- Type -
-
- -Promise + + + +
Inherited From:
+
+
-
+ + - + - -
+ - - -
-
-

shutdown()

- - -
-
+ - -
-

Shutdown the Hub.

-
- + - + - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - -
Returns:
- - -
-

Resolved upon successful disconnect.

-
- - - -
-
- Type -
-
- -Promise + + + + +
Source:
+
+
+ + + + + + +
+ + + + + - - -
- -
- - - - - -

Events

- -
-
-
-

button

- - -
-
- -
-

Emits when a button is pressed.

-
- +

+ (readonly) firmwareVersion +

- - - - -
Parameters:
- - - + + + +
Properties:
+ + + +
+ - + - + - + - + - + - + - + - + - - - - + + + + - - - - - - - - + - - - - + + - - + + - - - - - - - - - + +
NameTypeTypeDescriptionDescription
button
firmwareVersion - - -string - - - - -
+ + + + string + -
state - - -ButtonState + + +

Firmware version of the hub

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

+ (readonly) hardwareVersion +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
hardwareVersion + + + + string + + + + + + + +

Hardware version of the hub

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

+ (readonly) name +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + + + + + + + +

Name of the hub

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

+ (readonly) ports +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
ports + + + + Array.<string> + + + + + + + +

Array of port names

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

+ (readonly) primaryMACAddress +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
primaryMACAddress + + + + string + + + + + + + +

Primary MAC address of the hub

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

+ (readonly) rssi +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
rssi + + + + number + + + + + + + +

Signal strength of the hub

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

+ (readonly) type +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
type + + + + string + + + + + + + +

Hub type

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

+ (readonly) uuid +

+ + + + + + + +
Properties:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
uuid + + + + string + + + + + + + +

UUID of the hub

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

Methods

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

+ setName(name) → {Promise} +

+
+ + + + + +
+

Set the name of the Hub.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
name + + + + string + + + + + + + +

New name of the hub (14 characters or less, ASCII only).

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

+ shutdown() → {Promise} +

+
+ + + + + +
+

Shutdown the Hub.

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

Events

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

+ button +

+
+ + + + + +
+

Emits when a button is pressed.

+
+ + + + + + + +
Parameters:
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameTypeDescription
button + + + + string + + + + + + +
state + + + + ButtonState + - - - - - + + + + +
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Source:
+
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + +
-
- + -
+
- -
- -
- + - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/classes.list.html b/docs/classes.list.html deleted file mode 100644 index e10dcb0..0000000 --- a/docs/classes.list.html +++ /dev/null @@ -1,8798 +0,0 @@ - - - - - - - node-poweredup Classes - - - - - - - - - - - - - -
-
- - -
- -
- - -

Classes

-
- -
- -

- -

- - -
- - -
-
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - -
- - - - - - -

Classes

- -
-
AbsoluteMotor
-
- -
BaseHub
-
- -
BasicMotor
-
- -
ColorDistanceSensor
-
- -
CurrentSensor
-
- -
Device
-
- -
DuploTrainBase
-
- -
DuploTrainBaseColorSensor
-
- -
DuploTrainBaseMotor
-
- -
DuploTrainBaseSpeaker
-
- -
DuploTraniBaseSpeedometer
-
- -
Hub
-
- -
HubLED
-
- -
Light
-
- -
LPF2Hub
-
- -
Mario
-
- -
MarioAccelerometer
-
- -
MarioBarcodeSensor
-
- -
MarioPantsSensor
-
- -
MediumLinearMotor
-
- -
MotionSensor
-
- -
MoveHub
-
- -
MoveHubMediumLinearMotor
-
- -
MoveHubTiltSensor
-
- -
PiezoBuzzer
-
- -
RemoteControl
-
- -
RemoteControlButton
-
- -
SimpleMediumLinearMotor
-
- -
TachoMotor
-
- -
TechnicColorSensor
-
- -
TechnicDistanceSensor
-
- -
TechnicForceSensor
-
- -
TechnicLargeAngularMotor
-
- -
TechnicLargeLinearMotor
-
- -
TechnicMediumAngularMotor
-
- -
TechnicMediumHub
-
- -
TechnicMediumHubAccelerometerSensor
-
- -
TechnicMediumHubGyroSensor
-
- -
TechnicMediumHubTiltSensor
-
- -
TechnicXLargeLinearMotor
-
- -
TiltSensor
-
- -
TrainMotor
-
- -
VoltageSensor
-
- -
WeDo2SmartHub
-
-
- - - - - - - - - - - - - -

Events

- -
- -
-
-

absolute

- - -
-
- - -
-

Emits when a the motors absolute position is changed.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
absolute - - -number - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rotation - - -number - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

color

- - -
-
- - -
-

Emits when a color sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
color - - -Color - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

colorAndDistance

- - -
-
- - -
-

A combined color and distance event, emits when the sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
color - - -Color - - - - -
distance - - -number - - - - -

Distance, in millimeters.

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

distance

- - -
-
- - -
-

Emits when a distance sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
distance - - -number - - - - -

Distance, in millimeters.

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

current

- - -
-
- - -
-

Emits when a current change is detected.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
current - - -number - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

button

- - -
-
- - -
-

Emits when a button is pressed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
button - - -string - - - - -
state - - -ButtonState - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

color

- - -
-
- - -
-

Emits when a color sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
color - - -Color - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

intensity

- - -
-
- - -
-

Emits when intensity of the color/light changes.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
intensity - - -number - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

reflect

- - -
-
- - -
-

Emits when the light reflectivity changes.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
reflect - - -number - - - - -

Percentage, from 0 to 100.

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

rgb

- - -
-
- - -
-

Emits when the light reflectivity changes.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
red - - -number - - - - -
green - - -number - - - - -
blue - - -number - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

speed

- - -
-
- - -
-

Emits on a speed change.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
speed - - -number - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

attach

- - -
-
- - -
-

Emits when a device is attached to the Hub.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
device - - -Device - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

button

- - -
-
- - -
-

Emits when a button is pressed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
button - - -string - - - - -
state - - -ButtonState - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

detach

- - -
-
- - -
-

Emits when a device is detached from the Hub.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
device - - -Device - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

disconnect

- - -
-
- - -
-

Emits when the hub is disconnected.

-
- - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

button

- - -
-
- - -
-

Emits when a button is pressed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
button - - -string - - - - -
state - - -ButtonState - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

button

- - -
-
- - -
-

Emits when a button is pressed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
button - - -string - - - - -
state - - -ButtonState - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

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:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

barcode

- - -
-
- - -
-

Emits when the barcode sensor sees a barcode.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -number - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

rgb

- - -
-
- - -
-

Emits when the barcode sensor sees a RGB color.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
r - - -number - - - - -
g - - -number - - - - -
b - - -number - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

pants

- - -
-
- - -
-

Emits when the user changes the pants on Mario.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
pants - - -number - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rotation - - -number - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

distance

- - -
-
- - -
-

Emits when a distance sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
distance - - -number - - - - -

Distance, in millimeters.

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

button

- - -
-
- - -
-

Emits when a button is pressed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
button - - -string - - - - -
state - - -ButtonState - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rotation - - -number - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

tilt

- - -
-
- - -
-

Emits when a tilt sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
x - - -number - - - - -
y - - -number - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

button

- - -
-
- - -
-

Emits when a button is pressed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
button - - -string - - - - -
state - - -ButtonState - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

button

- - -
-
- - -
-

Emits when a button on the remote is pressed or released.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
event - - -number - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rotation - - -number - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

ambient

- - -
-
- - -
-

Emits when the ambient light changes.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
ambient - - -number - - - - -

Percentage, from 0 to 100.

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

color

- - -
-
- - -
-

Emits when a color sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
color - - -Color - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

reflect

- - -
-
- - -
-

Emits when the light reflectivity changes.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
reflect - - -number - - - - -

Percentage, from 0 to 100.

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

distance

- - -
-
- - -
-

Emits when the detected distance changes (Slow sampling covers 40mm to 2500mm).

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
distance - - -number - - - - -

Distance, from 40 to 2500mm

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

fastDistance

- - -
-
- - -
-

Emits when the detected distance changes (Fast sampling covers 50mm to 320mm).

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
fastDistance - - -number - - - - -

Distance, from 50 to 320mm

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

force

- - -
-
- - -
-

Emits when force is applied.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
force - - -number - - - - -

Force, in newtons (0-10).

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

tapped

- - -
-
- - -
-

Emits when the sensor is tapped.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
tapped - - -number - - - - -

How hard the sensor was tapped, from 0-3.

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

touch

- - -
-
- - -
-

Emits when the sensor is touched.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
touch - - -boolean - - - - -

Touched on/off (boolean).

- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

absolute

- - -
-
- - -
-

Emits when a the motors absolute position is changed.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
absolute - - -number - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rotation - - -number - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

absolute

- - -
-
- - -
-

Emits when a the motors absolute position is changed.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
absolute - - -number - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rotation - - -number - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

absolute

- - -
-
- - -
-

Emits when a the motors absolute position is changed.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
absolute - - -number - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rotation - - -number - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

button

- - -
-
- - -
-

Emits when a button is pressed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
button - - -string - - - - -
state - - -ButtonState - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

accel

- - -
-
- - -
-

Emits when accelerometer detects movement. Measured in mG.

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

gyro

- - -
-
- - -
-

Emits when gyroscope detects movement. Measured in DPS - degrees per second.

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

tilt

- - -
-
- - -
-

Emits when a tilt sensor is activated.

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

absolute

- - -
-
- - -
-

Emits when a the motors absolute position is changed.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
absolute - - -number - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

rotate

- - -
-
- - -
-

Emits when a rotation sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
rotation - - -number - - - - -
- - - - -
- - - - - - - -
Inherited From:
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

tilt

- - -
-
- - -
-

Emits when a tilt sensor is activated.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
x - - -number - - - - -
y - - -number - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

voltage

- - -
-
- - -
-

Emits when a voltage change is detected.

-
- - - - - -
Type: -object - - -
- - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
voltage - - -number - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- - - -
-
-

button

- - -
-
- - -
-

Emits when a button is pressed.

-
- - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
button - - -string - - - - -
state - - -ButtonState - - - - -
- - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- -
- - - - - - - -
- - - - - - - - - - - - - - - -
- -
- -
- -
- - - - -
-
- -
- - -
- -
- - -
-
- - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/devices_absolutemotor.js.html b/docs/devices_absolutemotor.js.html index 7de72bc..103baf9 100644 --- a/docs/devices_absolutemotor.js.html +++ b/docs/devices_absolutemotor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/absolutemotor.js - - + + - + + devices/absolutemotor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/absolutemotor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -217,140 +230,25 @@ exports.ModeMap = {
     "rotate": Mode.ROTATION,
     "absolute": Mode.ABSOLUTE
 };
-//# sourceMappingURL=absolutemotor.js.map
-
+//# sourceMappingURL=absolutemotor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_basicmotor.js.html b/docs/devices_basicmotor.js.html index 2ac85bc..1a5c54e 100644 --- a/docs/devices_basicmotor.js.html +++ b/docs/devices_basicmotor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/basicmotor.js - - + + - + + devices/basicmotor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/basicmotor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -160,140 +173,25 @@ class BasicMotor extends device_1.Device {
     }
 }
 exports.BasicMotor = BasicMotor;
-//# sourceMappingURL=basicmotor.js.map
-
+//# sourceMappingURL=basicmotor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_colordistancesensor.js.html b/docs/devices_colordistancesensor.js.html index af3dc0c..175f54d 100644 --- a/docs/devices_colordistancesensor.js.html +++ b/docs/devices_colordistancesensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/colordistancesensor.js - - + + - + + devices/colordistancesensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/colordistancesensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -291,140 +304,25 @@ var Output;
     Output["RED"] = "RED";
     Output["BLUE"] = "BLUE";
 })(Output = exports.Output || (exports.Output = {}));
-//# sourceMappingURL=colordistancesensor.js.map
-
+//# sourceMappingURL=colordistancesensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_currentsensor.js.html b/docs/devices_currentsensor.js.html index 9280053..dbba8de 100644 --- a/docs/devices_currentsensor.js.html +++ b/docs/devices_currentsensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/currentsensor.js - - + + - + + devices/currentsensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/currentsensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -154,140 +167,25 @@ const MaxCurrentValue = {
 const MaxCurrentRaw = {
     [Consts.HubType.UNKNOWN]: 4095,
 };
-//# sourceMappingURL=currentsensor.js.map
-
+//# sourceMappingURL=currentsensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_device.js.html b/docs/devices_device.js.html index d21225e..3d59488 100644 --- a/docs/devices_device.js.html +++ b/docs/devices_device.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/device.js - - + + - + + devices/device.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/device.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -259,140 +272,25 @@ class Device extends events_1.EventEmitter {
     }
 }
 exports.Device = Device;
-//# sourceMappingURL=device.js.map
-
+//# sourceMappingURL=device.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_duplotrainbasecolorsensor.js.html b/docs/devices_duplotrainbasecolorsensor.js.html index 0d5ebf2..f094edb 100644 --- a/docs/devices_duplotrainbasecolorsensor.js.html +++ b/docs/devices_duplotrainbasecolorsensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/duplotrainbasecolorsensor.js - - + + - + + devices/duplotrainbasecolorsensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/duplotrainbasecolorsensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -176,140 +189,25 @@ exports.ModeMap = {
     "reflect": Mode.REFLECTIVITY,
     "rgb": Mode.RGB
 };
-//# sourceMappingURL=duplotrainbasecolorsensor.js.map
-
+//# sourceMappingURL=duplotrainbasecolorsensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_duplotrainbasemotor.js.html b/docs/devices_duplotrainbasemotor.js.html index 152e799..2ec6d84 100644 --- a/docs/devices_duplotrainbasemotor.js.html +++ b/docs/devices_duplotrainbasemotor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/duplotrainbasemotor.js - - + + - + + devices/duplotrainbasemotor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/duplotrainbasemotor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -111,140 +124,25 @@ class DuploTrainBaseMotor extends basicmotor_1.BasicMotor {
     }
 }
 exports.DuploTrainBaseMotor = DuploTrainBaseMotor;
-//# sourceMappingURL=duplotrainbasemotor.js.map
-
+//# sourceMappingURL=duplotrainbasemotor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_duplotrainbasespeaker.js.html b/docs/devices_duplotrainbasespeaker.js.html index a0f2108..45fc2dc 100644 --- a/docs/devices_duplotrainbasespeaker.js.html +++ b/docs/devices_duplotrainbasespeaker.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/duplotrainbasespeaker.js - - + + - + + devices/duplotrainbasespeaker.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/duplotrainbasespeaker.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -139,140 +152,25 @@ var Mode;
     Mode[Mode["SOUND"] = 1] = "SOUND";
     Mode[Mode["TONE"] = 2] = "TONE";
 })(Mode = exports.Mode || (exports.Mode = {}));
-//# sourceMappingURL=duplotrainbasespeaker.js.map
-
+//# sourceMappingURL=duplotrainbasespeaker.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_duplotrainbasespeedometer.js.html b/docs/devices_duplotrainbasespeedometer.js.html index 5c9256f..ef4a1bb 100644 --- a/docs/devices_duplotrainbasespeedometer.js.html +++ b/docs/devices_duplotrainbasespeedometer.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/duplotrainbasespeedometer.js - - + + - + + devices/duplotrainbasespeedometer.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/duplotrainbasespeedometer.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -133,140 +146,25 @@ var Mode;
 exports.ModeMap = {
     "speed": Mode.SPEED
 };
-//# sourceMappingURL=duplotrainbasespeedometer.js.map
-
+//# sourceMappingURL=duplotrainbasespeedometer.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_hubled.js.html b/docs/devices_hubled.js.html index 9bc1377..f7a2d30 100644 --- a/docs/devices_hubled.js.html +++ b/docs/devices_hubled.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/hubled.js - - + + - + + devices/hubled.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/hubled.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -159,140 +172,25 @@ var Mode;
     Mode[Mode["COLOR"] = 0] = "COLOR";
     Mode[Mode["RGB"] = 1] = "RGB";
 })(Mode = exports.Mode || (exports.Mode = {}));
-//# sourceMappingURL=hubled.js.map
-
+//# sourceMappingURL=hubled.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_light.js.html b/docs/devices_light.js.html index 523b056..252aaa1 100644 --- a/docs/devices_light.js.html +++ b/docs/devices_light.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/light.js - - + + - + + devices/light.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/light.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -145,140 +158,25 @@ class Light extends device_1.Device {
     }
 }
 exports.Light = Light;
-//# sourceMappingURL=light.js.map
-
+//# sourceMappingURL=light.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_marioaccelerometer.js.html b/docs/devices_marioaccelerometer.js.html index cd8228f..566b350 100644 --- a/docs/devices_marioaccelerometer.js.html +++ b/docs/devices_marioaccelerometer.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/marioaccelerometer.js - - + + - + + devices/marioaccelerometer.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/marioaccelerometer.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -149,140 +162,25 @@ exports.ModeMap = {
     "accel": Mode.ACCEL,
     "gesture": Mode.GEST,
 };
-//# sourceMappingURL=marioaccelerometer.js.map
-
+//# sourceMappingURL=marioaccelerometer.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_mariobarcodesensor.js.html b/docs/devices_mariobarcodesensor.js.html index 183834c..7947e72 100644 --- a/docs/devices_mariobarcodesensor.js.html +++ b/docs/devices_mariobarcodesensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/mariobarcodesensor.js - - + + - + + devices/mariobarcodesensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/mariobarcodesensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -157,140 +170,25 @@ exports.ModeMap = {
     "barcode": Mode.BARCODE,
     "rgb": Mode.RGB,
 };
-//# sourceMappingURL=mariobarcodesensor.js.map
-
+//# sourceMappingURL=mariobarcodesensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_mariopantssensor.js.html b/docs/devices_mariopantssensor.js.html index 3d6678e..b45d31e 100644 --- a/docs/devices_mariopantssensor.js.html +++ b/docs/devices_mariopantssensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/mariopantssensor.js - - + + - + + devices/mariopantssensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/mariopantssensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -133,140 +146,25 @@ var Mode;
 exports.ModeMap = {
     "pants": Mode.PANTS,
 };
-//# sourceMappingURL=mariopantssensor.js.map
-
+//# sourceMappingURL=mariopantssensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_mediumlinearmotor.js.html b/docs/devices_mediumlinearmotor.js.html index c25a4fc..0b25cd2 100644 --- a/docs/devices_mediumlinearmotor.js.html +++ b/docs/devices_mediumlinearmotor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/mediumlinearmotor.js - - + + - + + devices/mediumlinearmotor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/mediumlinearmotor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -111,140 +124,25 @@ class MediumLinearMotor extends tachomotor_1.TachoMotor {
     }
 }
 exports.MediumLinearMotor = MediumLinearMotor;
-//# sourceMappingURL=mediumlinearmotor.js.map
-
+//# sourceMappingURL=mediumlinearmotor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_motionsensor.js.html b/docs/devices_motionsensor.js.html index 23c38e4..dd736de 100644 --- a/docs/devices_motionsensor.js.html +++ b/docs/devices_motionsensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/motionsensor.js - - + + - + + devices/motionsensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/motionsensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -137,140 +150,25 @@ var Mode;
 exports.ModeMap = {
     "distance": Mode.DISTANCE
 };
-//# sourceMappingURL=motionsensor.js.map
-
+//# sourceMappingURL=motionsensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_movehubmediumlinearmotor.js.html b/docs/devices_movehubmediumlinearmotor.js.html index ca6fe25..34b82d4 100644 --- a/docs/devices_movehubmediumlinearmotor.js.html +++ b/docs/devices_movehubmediumlinearmotor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/movehubmediumlinearmotor.js - - + + - + + devices/movehubmediumlinearmotor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/movehubmediumlinearmotor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -111,140 +124,25 @@ class MoveHubMediumLinearMotor extends tachomotor_1.TachoMotor {
     }
 }
 exports.MoveHubMediumLinearMotor = MoveHubMediumLinearMotor;
-//# sourceMappingURL=movehubmediumlinearmotor.js.map
-
+//# sourceMappingURL=movehubmediumlinearmotor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_movehubtiltsensor.js.html b/docs/devices_movehubtiltsensor.js.html index 9736a32..1f63529 100644 --- a/docs/devices_movehubtiltsensor.js.html +++ b/docs/devices_movehubtiltsensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/movehubtiltsensor.js - - + + - + + devices/movehubtiltsensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/movehubtiltsensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -135,140 +148,25 @@ var Mode;
 exports.ModeMap = {
     "tilt": Mode.TILT
 };
-//# sourceMappingURL=movehubtiltsensor.js.map
-
+//# sourceMappingURL=movehubtiltsensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_piezobuzzer.js.html b/docs/devices_piezobuzzer.js.html index 1976ba6..95b0996 100644 --- a/docs/devices_piezobuzzer.js.html +++ b/docs/devices_piezobuzzer.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/piezobuzzer.js - - + + - + + devices/piezobuzzer.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/piezobuzzer.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -127,140 +140,25 @@ class PiezoBuzzer extends device_1.Device {
     }
 }
 exports.PiezoBuzzer = PiezoBuzzer;
-//# sourceMappingURL=piezobuzzer.js.map
-
+//# sourceMappingURL=piezobuzzer.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_remotecontrolbutton.js.html b/docs/devices_remotecontrolbutton.js.html index a7c73b5..24551fe 100644 --- a/docs/devices_remotecontrolbutton.js.html +++ b/docs/devices_remotecontrolbutton.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/remotecontrolbutton.js - - + + - + + devices/remotecontrolbutton.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/remotecontrolbutton.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -139,140 +152,25 @@ exports.ButtonState = {
     "STOP": 0x7f,
     "RELEASED": 0x00,
 };
-//# sourceMappingURL=remotecontrolbutton.js.map
-
+//# sourceMappingURL=remotecontrolbutton.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_simplemediumlinearmotor.js.html b/docs/devices_simplemediumlinearmotor.js.html index d8a7aba..c9dfd79 100644 --- a/docs/devices_simplemediumlinearmotor.js.html +++ b/docs/devices_simplemediumlinearmotor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/simplemediumlinearmotor.js - - + + - + + devices/simplemediumlinearmotor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/simplemediumlinearmotor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -111,140 +124,25 @@ class SimpleMediumLinearMotor extends basicmotor_1.BasicMotor {
     }
 }
 exports.SimpleMediumLinearMotor = SimpleMediumLinearMotor;
-//# sourceMappingURL=simplemediumlinearmotor.js.map
-
+//# sourceMappingURL=simplemediumlinearmotor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_tachomotor.js.html b/docs/devices_tachomotor.js.html index 4ad0be5..f0a042d 100644 --- a/docs/devices_tachomotor.js.html +++ b/docs/devices_tachomotor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/tachomotor.js - - + + - + + devices/tachomotor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/tachomotor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -266,140 +279,25 @@ var Mode;
 exports.ModeMap = {
     "rotate": Mode.ROTATION
 };
-//# sourceMappingURL=tachomotor.js.map
-
+//# sourceMappingURL=tachomotor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_techniccolorsensor.js.html b/docs/devices_techniccolorsensor.js.html index 6dd7488..1271a72 100644 --- a/docs/devices_techniccolorsensor.js.html +++ b/docs/devices_techniccolorsensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/techniccolorsensor.js - - + + - + + devices/techniccolorsensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/techniccolorsensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -171,140 +184,25 @@ exports.ModeMap = {
     "reflect": Mode.REFLECTIVITY,
     "ambient": Mode.AMBIENT_LIGHT
 };
-//# sourceMappingURL=techniccolorsensor.js.map
-
+//# sourceMappingURL=techniccolorsensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_technicdistancesensor.js.html b/docs/devices_technicdistancesensor.js.html index 653013d..fcaff01 100644 --- a/docs/devices_technicdistancesensor.js.html +++ b/docs/devices_technicdistancesensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/technicdistancesensor.js - - + + - + + devices/technicdistancesensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/technicdistancesensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -157,140 +170,25 @@ exports.ModeMap = {
     "distance": Mode.DISTANCE,
     "fastDistance": Mode.FAST_DISTANCE
 };
-//# sourceMappingURL=technicdistancesensor.js.map
-
+//# sourceMappingURL=technicdistancesensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_technicforcesensor.js.html b/docs/devices_technicforcesensor.js.html index ec8fe02..b3a5c78 100644 --- a/docs/devices_technicforcesensor.js.html +++ b/docs/devices_technicforcesensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/technicforcesensor.js - - + + - + + devices/technicforcesensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/technicforcesensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -157,140 +170,25 @@ exports.ModeMap = {
     "touched": Mode.TOUCHED,
     "tapped": Mode.TAPPED
 };
-//# sourceMappingURL=technicforcesensor.js.map
-
+//# sourceMappingURL=technicforcesensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_techniclargeangularmotor.js.html b/docs/devices_techniclargeangularmotor.js.html index 159d4a7..d0e47c9 100644 --- a/docs/devices_techniclargeangularmotor.js.html +++ b/docs/devices_techniclargeangularmotor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/techniclargeangularmotor.js - - + + - + + devices/techniclargeangularmotor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/techniclargeangularmotor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -111,140 +124,25 @@ class TechnicLargeAngularMotor extends absolutemotor_1.AbsoluteMotor {
     }
 }
 exports.TechnicLargeAngularMotor = TechnicLargeAngularMotor;
-//# sourceMappingURL=techniclargeangularmotor.js.map
-
+//# sourceMappingURL=techniclargeangularmotor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_techniclargelinearmotor.js.html b/docs/devices_techniclargelinearmotor.js.html index 18022df..abfc299 100644 --- a/docs/devices_techniclargelinearmotor.js.html +++ b/docs/devices_techniclargelinearmotor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/techniclargelinearmotor.js - - + + - + + devices/techniclargelinearmotor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/techniclargelinearmotor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -111,140 +124,25 @@ class TechnicLargeLinearMotor extends absolutemotor_1.AbsoluteMotor {
     }
 }
 exports.TechnicLargeLinearMotor = TechnicLargeLinearMotor;
-//# sourceMappingURL=techniclargelinearmotor.js.map
-
+//# sourceMappingURL=techniclargelinearmotor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_technicmediumangularmotor.js.html b/docs/devices_technicmediumangularmotor.js.html index b5eb1fc..746393d 100644 --- a/docs/devices_technicmediumangularmotor.js.html +++ b/docs/devices_technicmediumangularmotor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/technicmediumangularmotor.js - - + + - + + devices/technicmediumangularmotor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/technicmediumangularmotor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -111,140 +124,25 @@ class TechnicMediumAngularMotor extends absolutemotor_1.AbsoluteMotor {
     }
 }
 exports.TechnicMediumAngularMotor = TechnicMediumAngularMotor;
-//# sourceMappingURL=technicmediumangularmotor.js.map
-
+//# sourceMappingURL=technicmediumangularmotor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_technicmediumhubaccelerometersensor.js.html b/docs/devices_technicmediumhubaccelerometersensor.js.html index 359c2fe..3a1b743 100644 --- a/docs/devices_technicmediumhubaccelerometersensor.js.html +++ b/docs/devices_technicmediumhubaccelerometersensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/technicmediumhubaccelerometersensor.js - - + + - + + devices/technicmediumhubaccelerometersensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/technicmediumhubaccelerometersensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -137,140 +150,25 @@ var Mode;
 exports.ModeMap = {
     "accel": Mode.ACCEL
 };
-//# sourceMappingURL=technicmediumhubaccelerometersensor.js.map
-
+//# sourceMappingURL=technicmediumhubaccelerometersensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_technicmediumhubgyrosensor.js.html b/docs/devices_technicmediumhubgyrosensor.js.html index 47917b8..5ae68cc 100644 --- a/docs/devices_technicmediumhubgyrosensor.js.html +++ b/docs/devices_technicmediumhubgyrosensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/technicmediumhubgyrosensor.js - - + + - + + devices/technicmediumhubgyrosensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/technicmediumhubgyrosensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -137,140 +150,25 @@ var Mode;
 exports.ModeMap = {
     "gyro": Mode.GYRO
 };
-//# sourceMappingURL=technicmediumhubgyrosensor.js.map
-
+//# sourceMappingURL=technicmediumhubgyrosensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_technicmediumhubtiltsensor.js.html b/docs/devices_technicmediumhubtiltsensor.js.html index d76d7b1..4d66225 100644 --- a/docs/devices_technicmediumhubtiltsensor.js.html +++ b/docs/devices_technicmediumhubtiltsensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/technicmediumhubtiltsensor.js - - + + - + + devices/technicmediumhubtiltsensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/technicmediumhubtiltsensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -137,140 +150,25 @@ var Mode;
 exports.ModeMap = {
     "tilt": Mode.TILT
 };
-//# sourceMappingURL=technicmediumhubtiltsensor.js.map
-
+//# sourceMappingURL=technicmediumhubtiltsensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_technicxlargelinearmotor.js.html b/docs/devices_technicxlargelinearmotor.js.html index 22f429c..46da883 100644 --- a/docs/devices_technicxlargelinearmotor.js.html +++ b/docs/devices_technicxlargelinearmotor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/technicxlargelinearmotor.js - - + + - + + devices/technicxlargelinearmotor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/technicxlargelinearmotor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -111,140 +124,25 @@ class TechnicXLargeLinearMotor extends absolutemotor_1.AbsoluteMotor {
     }
 }
 exports.TechnicXLargeLinearMotor = TechnicXLargeLinearMotor;
-//# sourceMappingURL=technicxlargelinearmotor.js.map
-
+//# sourceMappingURL=technicxlargelinearmotor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_tiltsensor.js.html b/docs/devices_tiltsensor.js.html index 67810a9..9bf29a2 100644 --- a/docs/devices_tiltsensor.js.html +++ b/docs/devices_tiltsensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/tiltsensor.js - - + + - + + devices/tiltsensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/tiltsensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -135,140 +148,25 @@ var Mode;
 exports.ModeMap = {
     "tilt": Mode.TILT
 };
-//# sourceMappingURL=tiltsensor.js.map
-
+//# sourceMappingURL=tiltsensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_trainmotor.js.html b/docs/devices_trainmotor.js.html index d1d6f61..a6672dd 100644 --- a/docs/devices_trainmotor.js.html +++ b/docs/devices_trainmotor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/trainmotor.js - - + + - + + devices/trainmotor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/trainmotor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -111,140 +124,25 @@ class TrainMotor extends basicmotor_1.BasicMotor {
     }
 }
 exports.TrainMotor = TrainMotor;
-//# sourceMappingURL=trainmotor.js.map
-
+//# sourceMappingURL=trainmotor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/devices_voltagesensor.js.html b/docs/devices_voltagesensor.js.html index d49d2fe..5d10136 100644 --- a/docs/devices_voltagesensor.js.html +++ b/docs/devices_voltagesensor.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: devices/voltagesensor.js - - + + - + + devices/voltagesensor.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ devices/voltagesensor.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -158,140 +171,25 @@ const MaxVoltageRaw = {
     [Consts.HubType.REMOTE_CONTROL]: 3200,
     [Consts.HubType.TECHNIC_MEDIUM_HUB]: 4095,
 };
-//# sourceMappingURL=voltagesensor.js.map
-
+//# sourceMappingURL=voltagesensor.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/fonts/OpenSans-Bold-webfont.eot b/docs/fonts/OpenSans-Bold-webfont.eot new file mode 100644 index 0000000..5d20d91 Binary files /dev/null and b/docs/fonts/OpenSans-Bold-webfont.eot differ diff --git a/docs/fonts/OpenSans-Bold-webfont.svg b/docs/fonts/OpenSans-Bold-webfont.svg new file mode 100644 index 0000000..3ed7be4 --- /dev/null +++ b/docs/fonts/OpenSans-Bold-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Bold-webfont.woff b/docs/fonts/OpenSans-Bold-webfont.woff new file mode 100644 index 0000000..1205787 Binary files /dev/null and b/docs/fonts/OpenSans-Bold-webfont.woff differ diff --git a/docs/fonts/OpenSans-BoldItalic-webfont.eot b/docs/fonts/OpenSans-BoldItalic-webfont.eot new file mode 100644 index 0000000..1f639a1 Binary files /dev/null and b/docs/fonts/OpenSans-BoldItalic-webfont.eot differ diff --git a/docs/fonts/OpenSans-BoldItalic-webfont.svg b/docs/fonts/OpenSans-BoldItalic-webfont.svg new file mode 100644 index 0000000..6a2607b --- /dev/null +++ b/docs/fonts/OpenSans-BoldItalic-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-BoldItalic-webfont.woff b/docs/fonts/OpenSans-BoldItalic-webfont.woff new file mode 100644 index 0000000..ed760c0 Binary files /dev/null and b/docs/fonts/OpenSans-BoldItalic-webfont.woff differ diff --git a/docs/fonts/OpenSans-Italic-webfont.eot b/docs/fonts/OpenSans-Italic-webfont.eot new file mode 100644 index 0000000..0c8a0ae Binary files /dev/null and b/docs/fonts/OpenSans-Italic-webfont.eot differ diff --git a/docs/fonts/OpenSans-Italic-webfont.svg b/docs/fonts/OpenSans-Italic-webfont.svg new file mode 100644 index 0000000..e1075dc --- /dev/null +++ b/docs/fonts/OpenSans-Italic-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Italic-webfont.woff b/docs/fonts/OpenSans-Italic-webfont.woff new file mode 100644 index 0000000..ff652e6 Binary files /dev/null and b/docs/fonts/OpenSans-Italic-webfont.woff differ diff --git a/docs/fonts/OpenSans-Light-webfont.eot b/docs/fonts/OpenSans-Light-webfont.eot new file mode 100644 index 0000000..1486840 Binary files /dev/null and b/docs/fonts/OpenSans-Light-webfont.eot differ diff --git a/docs/fonts/OpenSans-Light-webfont.svg b/docs/fonts/OpenSans-Light-webfont.svg new file mode 100644 index 0000000..11a472c --- /dev/null +++ b/docs/fonts/OpenSans-Light-webfont.svg @@ -0,0 +1,1831 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Light-webfont.woff b/docs/fonts/OpenSans-Light-webfont.woff new file mode 100644 index 0000000..e786074 Binary files /dev/null and b/docs/fonts/OpenSans-Light-webfont.woff differ diff --git a/docs/fonts/OpenSans-LightItalic-webfont.eot b/docs/fonts/OpenSans-LightItalic-webfont.eot new file mode 100644 index 0000000..8f44592 Binary files /dev/null and b/docs/fonts/OpenSans-LightItalic-webfont.eot differ diff --git a/docs/fonts/OpenSans-LightItalic-webfont.svg b/docs/fonts/OpenSans-LightItalic-webfont.svg new file mode 100644 index 0000000..431d7e3 --- /dev/null +++ b/docs/fonts/OpenSans-LightItalic-webfont.svg @@ -0,0 +1,1835 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-LightItalic-webfont.woff b/docs/fonts/OpenSans-LightItalic-webfont.woff new file mode 100644 index 0000000..43e8b9e Binary files /dev/null and b/docs/fonts/OpenSans-LightItalic-webfont.woff differ diff --git a/docs/fonts/OpenSans-Regular-webfont.eot b/docs/fonts/OpenSans-Regular-webfont.eot new file mode 100644 index 0000000..6bbc3cf Binary files /dev/null and b/docs/fonts/OpenSans-Regular-webfont.eot differ diff --git a/docs/fonts/OpenSans-Regular-webfont.svg b/docs/fonts/OpenSans-Regular-webfont.svg new file mode 100644 index 0000000..25a3952 --- /dev/null +++ b/docs/fonts/OpenSans-Regular-webfont.svg @@ -0,0 +1,1831 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Regular-webfont.woff b/docs/fonts/OpenSans-Regular-webfont.woff new file mode 100644 index 0000000..e231183 Binary files /dev/null and b/docs/fonts/OpenSans-Regular-webfont.woff differ diff --git a/docs/fonts/OpenSans-Semibold-webfont.eot b/docs/fonts/OpenSans-Semibold-webfont.eot new file mode 100755 index 0000000..d8375dd Binary files /dev/null and b/docs/fonts/OpenSans-Semibold-webfont.eot differ diff --git a/docs/fonts/OpenSans-Semibold-webfont.svg b/docs/fonts/OpenSans-Semibold-webfont.svg new file mode 100755 index 0000000..eec4db8 --- /dev/null +++ b/docs/fonts/OpenSans-Semibold-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-Semibold-webfont.ttf b/docs/fonts/OpenSans-Semibold-webfont.ttf new file mode 100755 index 0000000..b329084 Binary files /dev/null and b/docs/fonts/OpenSans-Semibold-webfont.ttf differ diff --git a/docs/fonts/OpenSans-Semibold-webfont.woff b/docs/fonts/OpenSans-Semibold-webfont.woff new file mode 100755 index 0000000..28d6ade Binary files /dev/null and b/docs/fonts/OpenSans-Semibold-webfont.woff differ diff --git a/docs/fonts/OpenSans-SemiboldItalic-webfont.eot b/docs/fonts/OpenSans-SemiboldItalic-webfont.eot new file mode 100755 index 0000000..0ab1db2 Binary files /dev/null and b/docs/fonts/OpenSans-SemiboldItalic-webfont.eot differ diff --git a/docs/fonts/OpenSans-SemiboldItalic-webfont.svg b/docs/fonts/OpenSans-SemiboldItalic-webfont.svg new file mode 100755 index 0000000..7166ec1 --- /dev/null +++ b/docs/fonts/OpenSans-SemiboldItalic-webfont.svg @@ -0,0 +1,1830 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf b/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf new file mode 100755 index 0000000..d2d6318 Binary files /dev/null and b/docs/fonts/OpenSans-SemiboldItalic-webfont.ttf differ diff --git a/docs/fonts/OpenSans-SemiboldItalic-webfont.woff b/docs/fonts/OpenSans-SemiboldItalic-webfont.woff new file mode 100755 index 0000000..d4dfca4 Binary files /dev/null and b/docs/fonts/OpenSans-SemiboldItalic-webfont.woff differ diff --git a/docs/fonts/glyphicons-halflings-regular.eot b/docs/fonts/glyphicons-halflings-regular.eot deleted file mode 100644 index b93a495..0000000 Binary files a/docs/fonts/glyphicons-halflings-regular.eot and /dev/null differ diff --git a/docs/fonts/glyphicons-halflings-regular.svg b/docs/fonts/glyphicons-halflings-regular.svg deleted file mode 100644 index 94fb549..0000000 --- a/docs/fonts/glyphicons-halflings-regular.svg +++ /dev/null @@ -1,288 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/docs/fonts/glyphicons-halflings-regular.ttf b/docs/fonts/glyphicons-halflings-regular.ttf deleted file mode 100644 index 1413fc6..0000000 Binary files a/docs/fonts/glyphicons-halflings-regular.ttf and /dev/null differ diff --git a/docs/fonts/glyphicons-halflings-regular.woff b/docs/fonts/glyphicons-halflings-regular.woff deleted file mode 100644 index 9e61285..0000000 Binary files a/docs/fonts/glyphicons-halflings-regular.woff and /dev/null differ diff --git a/docs/fonts/glyphicons-halflings-regular.woff2 b/docs/fonts/glyphicons-halflings-regular.woff2 deleted file mode 100644 index 64539b5..0000000 Binary files a/docs/fonts/glyphicons-halflings-regular.woff2 and /dev/null differ diff --git a/docs/hubs_basehub.js.html b/docs/hubs_basehub.js.html index 18dcccd..2f4b3c6 100644 --- a/docs/hubs_basehub.js.html +++ b/docs/hubs_basehub.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: hubs/basehub.js - - + + - + + hubs/basehub.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ hubs/basehub.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -473,140 +486,25 @@ class BaseHub extends events_1.EventEmitter {
     }
 }
 exports.BaseHub = BaseHub;
-//# sourceMappingURL=basehub.js.map
-
+//# sourceMappingURL=basehub.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/hubs_duplotrainbase.js.html b/docs/hubs_duplotrainbase.js.html index ac13a93..b00273c 100644 --- a/docs/hubs_duplotrainbase.js.html +++ b/docs/hubs_duplotrainbase.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: hubs/duplotrainbase.js - - + + - + + hubs/duplotrainbase.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ hubs/duplotrainbase.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -134,140 +147,25 @@ exports.PortMap = {
     "COLOR": 18,
     "SPEEDOMETER": 19
 };
-//# sourceMappingURL=duplotrainbase.js.map
-
+//# sourceMappingURL=duplotrainbase.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/hubs_hub.js.html b/docs/hubs_hub.js.html index 06e46a3..e36fdfb 100644 --- a/docs/hubs_hub.js.html +++ b/docs/hubs_hub.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: hubs/hub.js - - + + - + + hubs/hub.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ hubs/hub.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -146,140 +159,25 @@ exports.PortMap = {
     "CURRENT_SENSOR": 59,
     "VOLTAGE_SENSOR": 60
 };
-//# sourceMappingURL=hub.js.map
-
+//# sourceMappingURL=hub.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/hubs_lpf2hub.js.html b/docs/hubs_lpf2hub.js.html index ecb49f4..6d4e9e8 100644 --- a/docs/hubs_lpf2hub.js.html +++ b/docs/hubs_lpf2hub.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: hubs/lpf2hub.js - - + + - + + hubs/lpf2hub.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ hubs/lpf2hub.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -412,140 +425,25 @@ class LPF2Hub extends basehub_1.BaseHub {
     }
 }
 exports.LPF2Hub = LPF2Hub;
-//# sourceMappingURL=lpf2hub.js.map
-
+//# sourceMappingURL=lpf2hub.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/hubs_mario.js.html b/docs/hubs_mario.js.html index db7ffcf..aa30813 100644 --- a/docs/hubs_mario.js.html +++ b/docs/hubs_mario.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: hubs/mario.js - - + + - + + hubs/mario.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ hubs/mario.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -130,140 +143,25 @@ class Mario extends lpf2hub_1.LPF2Hub {
 }
 exports.Mario = Mario;
 exports.PortMap = {};
-//# sourceMappingURL=mario.js.map
-
+//# sourceMappingURL=mario.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/hubs_movehub.js.html b/docs/hubs_movehub.js.html index 70a27ee..27923c6 100644 --- a/docs/hubs_movehub.js.html +++ b/docs/hubs_movehub.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: hubs/movehub.js - - + + - + + hubs/movehub.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ hubs/movehub.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -148,140 +161,25 @@ exports.PortMap = {
     "CURRENT_SENSOR": 59,
     "VOLTAGE_SENSOR": 60
 };
-//# sourceMappingURL=movehub.js.map
-
+//# sourceMappingURL=movehub.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/hubs_remotecontrol.js.html b/docs/hubs_remotecontrol.js.html index dd49fee..6e2ab84 100644 --- a/docs/hubs_remotecontrol.js.html +++ b/docs/hubs_remotecontrol.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: hubs/remotecontrol.js - - + + - + + hubs/remotecontrol.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ hubs/remotecontrol.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -136,140 +149,25 @@ exports.PortMap = {
     "VOLTAGE_SENSOR": 59,
     "REMOTE_CONTROL_RSSI": 60
 };
-//# sourceMappingURL=remotecontrol.js.map
-
+//# sourceMappingURL=remotecontrol.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/hubs_technicmediumhub.js.html b/docs/hubs_technicmediumhub.js.html index ba9b81d..5ac20da 100644 --- a/docs/hubs_technicmediumhub.js.html +++ b/docs/hubs_technicmediumhub.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: hubs/technicmediumhub.js - - + + - + + hubs/technicmediumhub.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ hubs/technicmediumhub.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -141,140 +154,25 @@ exports.PortMap = {
     "GYRO_SENSOR": 98,
     "TILT_SENSOR": 99
 };
-//# sourceMappingURL=technicmediumhub.js.map
-
+//# sourceMappingURL=technicmediumhub.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/hubs_wedo2smarthub.js.html b/docs/hubs_wedo2smarthub.js.html index 560c8db..6790d97 100644 --- a/docs/hubs_wedo2smarthub.js.html +++ b/docs/hubs_wedo2smarthub.js.html @@ -1,83 +1,96 @@ - + + - - - node-poweredup Source: hubs/wedo2smarthub.js - - + + - + + hubs/wedo2smarthub.js - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
+ + + +
+ +

+ hubs/wedo2smarthub.js +

+ + + + +
-
-
"use strict";
+  
+
"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]; } });
@@ -287,140 +300,25 @@ exports.PortMap = {
     "PIEZO_BUZZER": 5,
     "HUB_LED": 6
 };
-//# sourceMappingURL=wedo2smarthub.js.map
-
+//# sourceMappingURL=wedo2smarthub.js.map
+
+ +
+
- - + -
- - - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + diff --git a/docs/icons/home.svg b/docs/icons/home.svg new file mode 100644 index 0000000..676d2d3 --- /dev/null +++ b/docs/icons/home.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/docs/icons/search.svg b/docs/icons/search.svg new file mode 100644 index 0000000..ccc84b6 --- /dev/null +++ b/docs/icons/search.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/docs/img/glyphicons-halflings-white.png b/docs/img/glyphicons-halflings-white.png deleted file mode 100644 index 3bf6484..0000000 Binary files a/docs/img/glyphicons-halflings-white.png and /dev/null differ diff --git a/docs/img/glyphicons-halflings.png b/docs/img/glyphicons-halflings.png deleted file mode 100644 index a996999..0000000 Binary files a/docs/img/glyphicons-halflings.png and /dev/null differ diff --git a/docs/index.html b/docs/index.html index f34b44d..8a43cf3 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,99 +1,97 @@ - - - - node-poweredup Index - - + + - + + Home - Documentation + + + + + + + + + + + + + + + + + + + + + + + + + - + +
+ +
- - + + +
+ + + + + + + - - - - - - - - - - - - - -
-

Drone
+

+
+

Drone
NPM Version

node-poweredup - A Javascript module to interface with LEGO Powered Up components.

Announcements

@@ -380,145 +378,26 @@ console.log("Scanning for Hubs...");

More examples are available in the "examples" directory.

Credits

-

Thanks go to Jorge Pereira (@JorgePe), Sebastian Raff (@hobbyquaker), Valentin Heun (@vheun), Johan Korten (@jakorten), and Andrey Pokhilko (@undera) for their various works, contributions, and assistance on figuring out the LEGO Boost, WeDo 2.0, and Powered Up protocols.

-
+

Thanks go to Jorge Pereira (@JorgePe), Sebastian Raff (@hobbyquaker), Valentin Heun (@vheun), Johan Korten (@jakorten), and Andrey Pokhilko (@undera) for their various works, contributions, and assistance on figuring out the LEGO Boost, WeDo 2.0, and Powered Up protocols.

+
+
+ +
+
+ - - - -
- - -
- -
- - - - - - - - - -
- - - - node-poweredup by Nathan Kellenicki licensed under the MIT license. - - - - Documentation generated by JSDoc 3.6.7 - - on Sun Aug 29th 2021 - - using the DocStrap template. - -
- - - - - - - - - - - - - - - - - - - + + + \ No newline at end of file diff --git a/docs/quicksearch.html b/docs/quicksearch.html deleted file mode 100644 index 41a2162..0000000 --- a/docs/quicksearch.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - diff --git a/docs/scripts/docstrap.lib.js b/docs/scripts/docstrap.lib.js deleted file mode 100644 index 09d9272..0000000 --- a/docs/scripts/docstrap.lib.js +++ /dev/null @@ -1,11 +0,0 @@ -if(!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b="length"in a&&a.length,c=_.type(a);return"function"!==c&&!_.isWindow(a)&&(!(1!==a.nodeType||!b)||("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a))}function d(a,b,c){if(_.isFunction(b))return _.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return _.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(ha.test(b))return _.filter(b,a,c);b=_.filter(b,a)}return _.grep(a,function(a){return U.call(b,a)>=0!==c})}function e(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}function f(a){var b=oa[a]={};return _.each(a.match(na)||[],function(a,c){b[c]=!0}),b}function g(){Z.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),_.ready()}function h(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=_.expando+h.uid++}function i(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(ua,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c||"false"!==c&&("null"===c?null:+c+""===c?+c:ta.test(c)?_.parseJSON(c):c)}catch(a){}sa.set(a,b,c)}else c=void 0;return c}function j(){return!0}function k(){return!1}function l(){try{return Z.activeElement}catch(a){}}function m(a,b){return _.nodeName(a,"table")&&_.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function n(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function o(a){var b=Ka.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function p(a,b){for(var c=0,d=a.length;d>c;c++)ra.set(a[c],"globalEval",!b||ra.get(b[c],"globalEval"))}function q(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(ra.hasData(a)&&(f=ra.access(a),g=ra.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)_.event.add(b,e,j[e][c])}sa.hasData(a)&&(h=sa.access(a),i=_.extend({},h),sa.set(b,i))}}function r(a,b){var c=a.getElementsByTagName?a.getElementsByTagName(b||"*"):a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&_.nodeName(a,b)?_.merge([a],c):c}function s(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ya.test(a.type)?b.checked=a.checked:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}function t(b,c){var d,e=_(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:_.css(e[0],"display");return e.detach(),f}function u(a){var b=Z,c=Oa[a];return c||(c=t(a,b),"none"!==c&&c||(Na=(Na||_("