BrightSign Object Reference Manual (FW 5.1) User Manual
Page 275

267
The ifControlPort interface provides the following:
•
GetVersion() As String: Returns the version number of the firmware (either the main BrightSign firmware or
the BrightSign Expansion Module firmware) responsible for the control port.
•
EnableOutput(pin As Integer) As Boolean: Marks the specified pin as an output. If an Invalid pin number
is passed, False will be returned. If successful, the function returns True. The pin will be driven high or low
depending on the current output state of the pin.
•
EnableInput(pin As Integer) As Boolean: Marks the specified pin as an input. If an Invalid pin number is
passed, False will be returned. If successful, the function returns True. The pin will be tri-stated and can be driven
high or low externally.
•
GetWholeState() As Integer: Returns the state of all the inputs attached to the control port as bits in an
integer. The individual pins can be checked using binary operations, although it is normally easier to call
IsInputActive() instead.
•
IsInputActive(pin As Integer) As Boolean: Returns the state of the specified input pin. If the pin is not
configured as an input, then the result is undefined.
•
SetWholeState(state As Integer) As Boolean: Specifies the desired state of all outputs attached to the
control port as bits in an integer. The individual pins can be set using binary operations, although it is normally
easier to call SetOutputState instead.
•
GetIdentity() As Integer: Returns the identity value that can be used to associate roControlUp and
roControlDown events with this control port.
•
SetOutputState(pin As Integer, level As Boolean) As Boolean: Specifies the desired state of the
specified output pin. If the pin is not configured as an output, the resulting level is undefined. This method can also
be used to configure LED output behavior on BP200/B900 button boards; see the
BP200/BP900 Setup section
below for more details.