Class: AuxOutput

AuxOutput

Provides methods and properties for accessing an auxiliary (isolated) output.

Members


state :bool

Gets/sets the state of the output.

Type:
  • bool
Since:
  • 1.0 (WAT 1.0)

Methods


clear()

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

Since:
  • 1.0 (WAT 1.0)

set()

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

Since:
  • 1.0 (WAT 1.0)

setState(on)

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

Parameters:
Name Type Description
on bool

New state of the output.

Since:
  • 1.3 (WAT 1.4)

toggle()

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

Since:
  • 1.0 (WAT 1.0)

Events


stateChanged

Indicates that the state of the aux 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:
  • 1.0 (WAT 1.0)