Light

This object controls the on-board LED of the TI-Innovator™ Hub.

TI-Nspire CX II:from ti_hub import *

CE products: import light

 

light.on()

Command:

light.on()

Command
Syntax:

light.on()

Range:

Describe:

Turns on the on-board digital RED LED.

Result:

Turns on LIGHT.

Type or
Addressable
Component:

Control

 

light.off()

Command:

light.off()

Command
Syntax:

light.off

Range:

Describe:

Turns off the on-board digital RED LED.

Result:

Turns off LIGHT.

Type or
Addressable
Component:

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
Addressable Component:

Control