
273
roGpioControlPort, roGpioButton
Note: New scripts should use roControlPort instead of roGpioControlPort.
roGpioControlPort
This object is used to control and wait for events on the BrightSign generic DB15 control port. Typically, LEDs or buttons
are connected to the DB15 / DB25 port. Turning on a GPIO output changes the voltage on the GPIO port to 3.3V. Turning
off a GPIO output changes the voltage on the GPIO port to 0V.
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(2^1 + 2^2 ) will set
IDs 1 and 2).
Interfaces: ifSetMessagePort, ifGpioControlPort
The ifSetMessagePort interface provides the following:
• SetPort(obj As Object) As Void
The ifGpioControlPort interface provides the following:
• IsInputActive(input_id As Integer) As Boolean
• GetWholeState() As Integer
• SetOutputState(output_id As Integer, onState As Boolean) As Void
• SetWholeState(on_state As Integer) As Void
• EnableInput(input_id As Integer) As Boolean
• EnableOutput(output_id As Integer) As Boolean
Komentáře k této Příručce