SET RGB

Command:

SET RGB n r g b

Command
Syntax:

SET RGB n r g b

SET RGB eval(n) r g b

Code
Sample:

Send "SET RGB 1 255 0 255"

Range:

0-15 for 'n', 0-255 for r,g,b

Describe:

The SET RGB command controls the brightness and color of each RGB LED in the TI-RGB Array

Result:

The specific LED lights up with the specified color

Type or
Addressable
Component:

All components of the TI-RGB Array

See Also: Commands to use with TI-RGB Array

See Also: SET RGB ALL

 

SET RGB [n1 n2 n3…] r g b

Command:

SET RGB [n1 n2 n3…] r g b

Command
Syntax:

SET RGB [n1 n2 n3…] r g b

Default
value:

 

Range:

A max of 16 LEDs can be specified.

Code
Sample:

SET RGB [1 3 5 7] 200 0 200

Sets LEDs #1, 3, 5 & 7 to purple (red + blue).

Note: If using eval() with a variable for the LED number, make sure there’s a preceding space before the ‘eval()’.

SET RGB [ eval(i) eval(i+1) ] 255 0 255

Describe:

Set the LEDs specified by their numbers to the specified color.

Result:

 

Type or
Addressable Component:

All components of the TI-RGB Array.

 

SET RGB PATTERN nnnn r g b

Command:

SET RGB PATTERN nnnn r g b

Command
Syntax:

SET RGB PATTERN nnnn r g b

nnnn – can be a decimal or a hexadecimal number.

Default
value:

 

Range:

nnnn – 0 to 65535

Code
Sample:

SET RGB PATTERN 100 255 0 255

Display the number 100 in binary form on the RGB array and set the color of the LEDs to purple.

SET RGB PATTERN 0X100 255 0 0

Display the hexadecimal number 100 (equal to 256 in decimal) in binary form on the RGB array and set the color of the LEDs to red.

Describe:

Display the pattern indicated by the number using the specified color.

Result:

 

Type or
Addressable Component:

All components of the TI-RGB Array.