Light
This object controls the on-board LED of the TI-Innovator™ Hub.
TI-Nspire CX II:from ti_hub import *
|
|
|
light.on()
Command: |
light.on() |
---|---|
Command |
light.on() |
Range: |
|
Describe: |
Turns on the on-board digital RED LED. |
Result: |
Turns on LIGHT. |
Type or |
Control |
light.off()
Command: |
light.off() |
---|---|
Command |
light.off |
Range: |
|
Describe: |
Turns off the on-board digital RED LED. |
Result: |
Turns off LIGHT. |
Type or |
Control |
light.blink()
Command: |
light.blink() |
---|---|
Command Syntax: |
light.blink(frequency, seconds) |
Range: |
Frequency: 0.1 – 20 Hz Time: 0.1 – 100 s |
Describe: |
Set blink frequency and duration for on-board digital LED. Example: light.blink(2, 5) # Blink the LED 2 times a second for 5 seconds |
Result: |
|
Type or |
Control |