22
Connecting an I/O Module
You use the I/O cable included with the module to connect it to a Hub Input or Output
port.
1. Check the above table to ensure that you know which I/O ports support the module
that you are connecting.
2. Connect either end of the I/O cable to the white connector on the module.
3. Connect the free end of the I/O cable to the Hub port you have decided to use.
4. If the module requires auxiliary power, connect the power source (page 27),
Sample Program to Blink an LED Module
The following TI CE graphing calculator program uses
Send
and
Wait
commands to
blink an LED module connected to an I/O port.
Note:
This program operates correctly only if the calculator is connected to the Hub and
an LED module is physically connected to port
OUT 1
.
PRGM: BLINKIO
Send("CONNECT LED 1 TO
OUT1")
For(N,1,10)
Send("SET LED 1 ON")
Wait 1
Send("SET LED 1 OFF")
Wait 1
End
Send("DISCONNECT LED 1")
Note:
If you are using
TI-Nspire™ CX technology, omit
the parentheses, and change
End
to
EndFor
.
The Hub command string "CONNECT LED 1 TO OUT1" tells the Hub that an LED module
is connected to port
OUT 1
on the Hub. After sending this command, the code can
address the LED as "LED 1." The CONNECT command is required only for I/O Modules
and Breadboard components. It is not necessary with the on-board components such as
the built-in speaker.
Learn More
For a list of precautions to take while using the I/O Modules, refer to
General
Precautions
(page 38).