GPIO Port
Mirage WQ-L User Manual
109
020-101372-01 Rev. 1 (04-2014)
Configure GPIO
The GPIO connector can be configured to automate any number of events using the serial command
code
GIO
General Purpose Input/Output (GIO)
on page 84. Each pin is defined as either an
input or output depending on the desired outcome. Configure the pin as an input if you want the
projector to respond to something the device does and as an output if you want the external device
to respond to an action taken by the projector. For example, configure the pin as an output if you
want the lighting in a room to automatically dim when the projector is powered On. By using the
GIO
command, you can also set the state of each output pin as high or low. By default, the state of
each pin is high. The voltage applied to pins in the high state is +3.3 V. A low state (or value of 0)
will be read on an input pin if the circuit attached to the pin is open. A high state (or value of 1) will
be read on an input pin if the circuit attached to the pin is shorted to ground. This corresponds to a
switch closing event.
Example
Turn room lighting on when the projector is powered Off (assumes a control/automation unit is
configured to power the lights On when pin 2 of its input goes high).
i
The strings in the commands refer to pins 2, 3, 4, 6, 7, 8, 9 in order from left to right.
(GIO+CNFG “OOOIIII”)
Set pin #2, 3 and 4 configuration to output and pin 6, 7, 8 and 9 to input.
(GIO+STAT “HLXXXXX”)
Set pin #2 to high, pin 3 to low and the state of all other pins unchanged.
Query Command
(GIO+STAT)
Request the state of all pins.
(GIO+STAT “HLLHLLH”)
Reply of pin states - H means pin is high, L means pin is low.
(GIO+CNFG)
Request the configuration of all pins.
(GIO+CNFG “IIIOOOO”)
Reply of pin configurations - pins #2, 3 and 4 are inputs, pins 6, 7, 8 and 9
are outputs.
Pin
Pin
Open (0 or L)
Closed (1 or H)