1. RGB LED [index] lights up [color_2] for [number_3]secs

RGB LED - 图1

Lights up the specified RGB LED in the specified color for the specified period of time

How to Use

The number in this block indicates the place of an RGB LED among the ones connected to Halocode. As shown in the following figure, the number 1 indicates the first RGB LED connected to Halocode, 2 indicates the second one, and so on.

RGB LED - 图2

Click to set the color and time.

Example

RGB LED - 图3

When you press the space key, the first RGB LED connected to Halocode is lit up in red for one second.


2. RGB LED [index] lights up [color_2]

RGB LED - 图4

Lights up the specified RGB LED in the specified color

How to Use

Click to set the color.

Example

RGB LED - 图5

When you press the space key, the first RGB LED connected to Halocode is lit up in red.


3. RGB LED [index] sets color to R: [r] G: [g] B: [b]

RGB LED - 图6

Lights up the specified RGB LED in the color that is the combination of the specified intensity of red, green, and blue

How to Use

Click to set the color values.
R: red
G: green
B: blue
Setting range of R, G, or B: 0–255

Example

RGB LED - 图7

When you press the space key, the first RGB LED connected to Halocode is lit up in red.


4. RGB LED [index] lights off

RGB LED - 图8

Turns off the specified RGB LED

How to Use

Click to select the RGB LED to be turned off from the drop-down list box.

Example

RGB LED - 图9

When you press the space key, the first RGB LED connected to Halocode goes off.


5. RGB LED [index] sets [color]value to [value]

RGB LED - 图10

Lights up the specified RGB LED in the specified color of the specified intensity

How to Use

Click to select the color and set its intensity.
R: red
G: green
B: blue
Setting range of the color: 0–255

Example

RGB LED - 图11

When you press the space key, the first RGB LED connected to Halocode is lit up in red.


6. RGB LED [index] changes [color] value by [value]

RGB LED - 图12

Changes the intensity of the specified color of the specified RGB LED

How to Use

Click to set the color and the amount by which its intensity is to be changed. A positive value indicates increasing the intensity, and a negative one indicates decreasing the intensity.
R: red
G: green
B: blue
Intensity range of a color: 0–255

Example

RGB LED - 图13

When you press the space key, the first RGB LED connected to Halocode is lit up in red, and then the color becomes lighter and lighter.


7. RGB LED [index]’s [color] value

RGB LED - 图14

Reports the intensity of the specified color of the specified RGB LED

How to Use

Click to select the RGB LED and color from the drop-down list boxes.
R: red
G: green
B: blue
You can select the check box on the left of this block to see the intensity of the color on the stage.
Note: This is a reporter block that must be used in combination with another block requiring data.

Example

RGB LED - 图15

When you press the space key, the first LED matrix connected to Halocode displays the intensity of the red color of the first RGB LED.
Note: Ensure that you have connected an LED matrix to Halocode.