Set multiple LEDs in one command
Command: |
SET RGB [n1 n2 n3…] r g b |
---|---|
Command |
SET RGB [n1 n2 n3…] r g b |
Default |
|
Range: |
A max of 16 LEDs can be specified. |
Code |
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 |
All components of the TI-RGB Array. |
Display a number on the TI-RGB Array
Command: |
SET RGB PATTERN nnnn r g b |
---|---|
Command |
SET RGB PATTERN nnnn r g b nnnn – can be a decimal or a hexadecimal number. |
Default |
|
Range: |
nnnn – 0 to 65535 |
Code |
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 |
All components of the TI-RGB Array. |