- 1. [ICON] RGB LED [PORT]lights up [LED_POSTION] with color [COLOR] for [TIME] secs
- 2. [ICON] RGB LED [PORT] lights up [LED_POSTION]with color [COLOR]
- 3. [ICON] RGB LED [PORT] lights up [LED_POSTION] with color red [R] green [G] blue[B]
- 4. [ICON] light sensor[PORT] light intensity
- 5. [ICON] sound sensor [PORT] loudness
1. [ICON] RGB LED [PORT]lights up [LED_POSTION] with color [COLOR] for [TIME] secs
Lights up the specified LED(s) on the RGB LED module connected to the specified port of mBot in the specified color for the specified period of time
How to Use
mBot provides four ports that can be used to connect RGB LED modules. Click the port number to select one.
This block provides five LED options. Click to select one.
Click the color and time to define the ones you want.
Alternatively, you can put a reporter block in this block, for example:
Example
Note: Ensure that you have connected an RGB LED module to mBot through port 1.
When you press the space key, all LEDs on the RGB LED module are lit up in blue for five seconds.
2. [ICON] RGB LED [PORT] lights up [LED_POSTION]with color [COLOR]
Lights up the specified LED(s) on the RGB LED module connected to the specified port of mBot in the specified color
How to Use
mBot provides four ports that can be used to connect RGB LED modules. Click the port number to select one.
This block provides five LED options. Click to select one.
Click the color to define the one you want.
Example
Note: Ensure that you have connected an RGB LED module to mBot through port 1.
When you press the space key, all LEDs on the RGB LED module are lit up in blue.
3. [ICON] RGB LED [PORT] lights up [LED_POSTION] with color red [R] green [G] blue[B]
Lights up the specified LED(s) on the RGB LED module connected to the specified port of mBot in the specified color that is the combination of the specified intensity of red, green, and blue
How to Use
mBot provides four ports that can be used to connect RGB LED modules. Click the port number to select one.
This block provides five LED options. Click to select one.
Click the color intensity values to define the ones you want.
Example
Note: Ensure that you have connected an RGB LED module to mBot through port 1.
When you press the space key, all LEDs on the RGB LED module are lit up in red.
4. [ICON] light sensor[PORT] light intensity
Reports the light intensity detected by the specified light sensor
How to Use
mBot provides an on-board light sensor and two ports can be used to connect light sensors. Click to select one.
Note: This is a reporter block that must be used in combiantion with another block requiring data.
Example
Note: Ensure that you have connected a display panel to mBot through port 4.
When you press the space key, the display panel displays the light intensity detected by the on-board light sensor.
5. [ICON] sound sensor [PORT] loudness
Reports the loudness detected by the specified sound sensor
How to Use
mBot provides two ports that can be used to connect sound sensors. Accordingly, this block provides two port options. Click to select one.
Note: This is a reporter block that must be used in combiantion with another block requiring data.
Example
Note: Ensure that you have connected a display panel to mBot through port 4 and connected a sound sensor through port 3.
When you press the space key, the display panel displays the loudness detected by the sound sensor.