1. [ICON] RGB LED [PORT]lights up [LED_POSTION] with color [COLOR] for [TIME] secs

Light Sound - 图1

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:
Light Sound - 图2

Example

Light Sound - 图3

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]

Light Sound - 图4

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

Light Sound - 图5

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]

Light Sound - 图6

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

Light Sound - 图7

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

Light Sound - 图8

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

Light Sound - 图9

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

Light Sound - 图10

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

Light Sound - 图11

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.