26
PRGM: BLINKBB
Send("CONNECT LED 1 TO BB1")
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 BB1" tells the Hub that an LED on the
breadboard is connected to pin
1
on the Hub. After sending this command, your code
can address the LED as "LED 1." The CONNECT command is required only for I/O
Modules and breadboard components. It does not apply to on-board components such
as the built-in speaker.
Breadboard Basics
The breadboard makes it easy to connect the electronic components of a project by
inserting component leads and jumper cables into pins on the breadboard.
The pins are arranged in groups of 5. The 5 pins in each group are electrically
connected to each other at the back of the board. You connect leads and cables
together by inserting them into pins within the same group.
•
Power rails at the top and bottom are marked with red (+) and blue (–) stripes. The
groups in each rail are electrically connected along the entire length of the stripe.
•
The remaining 5-pin groups on the board are labeled with numbers and letters.
Each group is electrically isolated from the others.