Class: POESLOutput

POESLOutput

Provides methods and properties for accessing a digital output.

Members


flash :bool

Gets/sets the flash state of the output. When an output is flashing, it follows the flash times specified in exio.POESLOutputs#onTime and exio.POESLOutputs#offTime.

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

on :bool

Returns true if the output is steady or flashing. Same as (output.state || output.flash).

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

state :bool

Gets/sets the state of the output.

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

Methods


clear()

Sets the output to false. Same as state = false. Can be connected to a signal.

Since:
  • 0.1 (WAT 2.0)

set()

Sets the output to true. Same as state = true. Can be connected to a signal.

Since:
  • 0.1 (WAT 2.0)

setState(on)

Same as writing to state, but can be connected to a signal.

Parameters:
Name Type Description
on bool

The new state of the output.

Since:
  • 0.1 (WAT 2.0)

toggle()

Toggles the output. Same as state = !state. Can be connected to a signal.

Since:
  • 0.1 (WAT 2.0)

Events


stateChanged

Indicates that the state of the output has changed. Event will only fire if monitor mode has been enabled.

Parameters:
Name Type Description
state bool

new state of the output

Since:
  • 0.1 (WAT 2.0)