Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added JS equivalent

...

The GPIO ports are bidirectional and must be programmed as either inputs or outputs. The IDs range from 0–7. The SetWholeState() method will overwrite any prior output settings. The SetOutputState() takes an output ID (1, 2, or 6, for example). The SetWholeState() method takes a mask (for example, SetWholeState(SetWholeState(2^1 + 2^2) will set IDs 1 and 2).

The JavaScript equivalent is controlport.

ifMessagePort

SetPort(obj As Object) As Void

...

EnableOutput(output_id As Integer) As Boolean