Class: MDSIO1

MDSIO1

Provides methods and properties for accessing hardware on a uP4k with I/O configuration 1. This object can be accessed by loading the plugin 'mdsio1' (a.k.a. 'hw'). A single object is returned when loading the plugin, which is an MDSIO1.


Example
var hw = $wat.load('hw')[0];

Members


<readonly> auxInputs :Array.<miob.AuxInput>

An array of the 2 individual aux inputs.

Type:
Since:
  • 0.1 (WAT 2.0)

<readonly> auxOutputs :Array.<miob.AuxOutput>

An array of the 2 individual aux outputs.

Type:
Since:
  • 0.1 (WAT 2.0)

monitorMode :bool

When enabled, events will be generated when outputs (DSIOs) are changed. This could be used to show the active state of the outputs.

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

Methods


reset()

Reset all of the I/O to the default state. Useful to start with a known state when re-initializing an application.

Since:
  • 0.1 (WAT 2.0)