Roirreceiver – BrightSign Object Reference Manual (FW 5.1) User Manual

Page 283

Advertising
background image

275

roIRReceiver

This object supports receiving arbitrary Infrared remote control codes using the NEC and RC5 protocols.

Object Creation: The roIRReceiver object is created with an associative array specifying the following:

source: A string value indicating the source of the input.

o "IR-in": The 3.5mm IR input/output connector (available on 4Kx42 and XDx32 models)
o "GPIO": Pin 1 of the GPIO connector
o "Iguana": The

Iguanaworks

IR transceiver. This source can support both NEC and RC5 encodings

simultaneously.

encodings: An array indicating the required encodings.

o "NEC"
o "RC5" (supported on the Iguanaworks IR transceiver only)


CreateObject("roIRReceiver", config As roAssociativeArray)

NEC codes are expressed in 24 bits:

Bits 0-7: Button code

Bits 8-23: Manufacturer code

Note: If the manufacturer code is zero, then the code is considered to be intended for the Roku SoundBridge remote
control.


The roIRReceiver object can generate the following events:

roIRDownEvent: Generates when a button is pressed.

roIRRepeatEvent: Generates when a button repeats.

roIRUpEvent (Iguanaworks IR transceiver only): Generates when a button is released.

Advertising