Class: POESLInputs

POESLInputs

Provides properties and methods for accessing all digital inputs.

Members


<readonly> state :number

The state of the inputs as a bitmask. Bit 1 for input 1, bit 2 for input 2, etc.

Type:
  • number
Since:
  • 0.1 (WAT 2.0)

Methods


holdoff(index)

Returns the holdoff for a specific input

Parameters:
Name Type Description
index number

The input to get the holdoff for

Since:
  • 0.1 (WAT 2.0)
See:
Returns:
Type
number

setHoldoff(index, holdoff)

Sets the holdoff for a specific input

Parameters:
Name Type Description
index number

The input to set the holdoff for

holdoff number

The holdoff in 10 ms increments

Since:
  • 0.1 (WAT 2.0)
See:

setThreshold(index, holdoff)

Sets the threshold for a specific input

Parameters:
Name Type Description
index number

The input to set the threshold for

holdoff number

The threshold, range [0-255]

Since:
  • 0.1 (WAT 2.0)
See:

threshold(index)

Returns the threshold for a specific input

Parameters:
Name Type Description
index number

The input to get the threshold for

Since:
  • 0.1 (WAT 2.0)
See:
Returns:
Type
number

Events


stateChanged

Indicates that the state of the inputs has changed.

Parameters:
Name Type Description
state number

new state of the inputs

Since:
  • 0.1 (WAT 2.0)
See: