1. dual RGB sensor [index] probe[prob] detects color [color] ?
Determines whether the specified probe on the specified dual RGB sensor detects the specified color
How to Use
The dual RGB sensor can be used to detect colors and facilitate the line following of robots. It provides two groups of probes, as shown in the following figure.
Detection range of probes: 5–15 mm
The number in this block indicates the place of a dual RGB sensor among the ones connected to Halocode. As shown in the following figure, the number 1 indicates the first dual RGB sensor connected to Halocode, 2 indicates the second one, and so on.
This block supports the detection of eight colors. Click to select one.
Note: This is a Boolean block that contains a condition. Use it in combination with another block that requires a condition.
Example
After pressing the space key, put probe 1 of the first dual RGB sensor near an object with a red surface. All the LEDs on Halocode light up in red.
2. dual RGB sensor [index] probe[prob] detects ambient light intensity
Reports the ambient light intensity detected by the specified probe on the specified dual RGB sensor
How to Use
A larger value indicates a higher ambient light intensity.
You can select the check box on the left of this block to view the ambient light intensity on the stage.
Note: This is a reporter block that must be used in combination with another block requiring data.
Example
When you press the space key, the first LED matrix connected to Halocode displays the ambient light intensity detected by probe 1 of the first dual RGB sensor connected.
Note: Ensure that you have connected an LED matrix to Halocode.