Hub Programming on TI CE Graphing Calculator
Note:
These instructions apply to TI CE graphing calculator. For similar instructions for
TI-Nspire™ CX technology, refer to Hub Programming on TI-Nspire™ CX Technology
(page 15).
The TI-Innovator™ Hub responds to TI Basic programming commands such as
Send
and
Get
.
•
Send
- Sends command strings to the Hub to control devices or request
information.
•
Get
- Retrieves information requested from the Hub.
•
eval
- Supplies the result of an expression as a character string. Especially useful
within the Hub command string in
Send
commands.
•
Wait
- Pauses program execution for a specified number of seconds.
Code Examples: TI CE Graphing Calculator
Desired Action
Program Code
Turn on the on-board Red LED
("LIGHT").
Send("SET LIGHT ON")
Play a 440Hz tone on the on-board
speaker ("SOUND") for 2 seconds.
Send("SET SOUND 440 TIME 2")
Turn on blue element of on-board RGB
LED ("COLOR") at 100% brightness.
Send("SET COLOR.BLUE 255")
Read and display the current value of
the on-board light sensor
("BRIGHTNESS"). Range is 0% to 100%.
Send("READ BRIGHTNESS")
Get(A):Disp A
Sample Program to Blink an On-Board LED
The following TI CE graphing calculator program uses the
Send
and
Wait
commands to
blink the on-board red LED in the Hub. The commands are contained in a "For...End"
loop that repeats the ON/OFF blink cycle for 10 iterations.
7