Ifsetmessageport – BrightSign Object Reference Manual (FW 5.1) User Manual
Page 276

268
•
SetOutputValue(offset As Integer, bit-mask As Integer): Configures the BP200/BP900 button
board when roControlPort object is instantiated with the
Touchboard-<n>-LED-SETUP or Touchboard-<n>-
LED parameter. See the BP200/900 Setup section below for more details.
•
GetProperties() As roAssociativeArray: Returns an associative array of values related to the attached
BP200/BP900 button board, including
hardware, header, and revision. This method can only be used with an
roControlPort instantiated with the
Touchboard-<n>-GPIO parameter.
•
SetPulseParams(parameters As roAssociativeArray) As Boolean: Specifies a period of time, as well
as the time slices within that period, for pulsing GPIO LED pins. These properties are applied to all GPIO pins. This
method is passed an associative array with the following parameters:
o milliseconds: An integer specifying the time period (in ms) for pulsing
o slices: An integer specifying the number of divisions within the milliseconds time period: For example,
a 500ms time period with
slices:2 is divided into two 250ms slices.
•
SetPulse(pin As Integer, bit-field As Integer) As Boolean: Sets the off/on bit field for a
particular GPIO pin. Use the
slices parameter of the SetPulseParams() method to determine the number of
bits in the bit field. For example, specifying
milliseconds:500, slices:2, and a bit field of 10 will cause the
pin to turn on every other 250 millisecond period.
•
RemovePulse(pin As Integer) As Boolean: Removes the specified GPIO pin from the set of pins affected
by the pulse.
The ifSetMessagePort interface provides the following:
•
SetPort(port As Object): Requests that all events raised on this control port be posted to the specified
message port.
Example: The following code applies timed pulses to a set of GPIO pins.
' set up pin 2 and 3 to flash at 2Hz (i.e. on & off twice in a second) in an alternating
' fashion.