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

270
BP200/BP900 Setup
To send a configuration to the BP200/BP900 button board, instantiate roControlPort with the
Touchboard-
SETUP parameter and call the SetOuputValue() method. This method accepts two integers: the first integer specifies
one of three command types (offsets); the second integer is a bit field consisting of 32 bits.
•
Offset 0: Configures the button board using a bit field that is split into four bytes of eight bits each. Each byte is a
separate part of the configuration. In the script, these bytes need to be listed from right to left in hex value (i.e. Byte
1 + Byte 2 + Byte 3 + Byte 4).
o Byte 1: Specifies the configuration type for the button board. Currently, the only configuration type is for LED
output, which is specified with the value
&hA0.
o Byte 2: The button number(s) that will be configured. Buttons are numbered beginning from 1. The value is
set to 0 (
&h00) if this command is not required.
o Byte 3: The LED bit-field configuration. This value specifies how many on/off bits should be used (up to 32
bits) when
SetOutputValue() is called on a Touchboard-
LED Output section below for details). Set the value to 0 (
&h00) if this command is not required (the bit field
will be set to eight bits by default).
o Byte 4: This value is currently always set to 0 (&h00).
•
Offset 1: Disables buttons on the button board according to values in the bit field. Each button is disabled
individually by setting bits 0-10: For example, passing the hex value
&h00000008 will disable button 4 only.
•
Offset 2: Disables LEDs on the button board according to values in the bit field. Each LED is disabled individually
by setting bits 0-10: For example, passing the hex value
&h00000080 will disable the LED on button 8 only.
Note: Disabling a button LED will not automatically disable the button itself (and vice-versa). To disable both the
button and the LED, make separate SetOutputValue() calls for Offset 1 and Offset 2.
BP200/BP900 LED Output
To control the behavior of individual button LEDs, instantiate roControlPort with the
Touchboard-
then pass per-LED bit fields to the
SetOutputValue() method. This method accepts two integers: the first integer