7. Button
Thebuttonisaninputdevice.Itusual-
lydefinesdifferentfunctionsdepend-
ing on the application scenario.
Buzzer
The buzzer is an audio device, but also
an output device. It can control the
different output frequencies so as to
give a different tone.
The RGB LED light is a output light source
device.Itcanoutputlightofanycolorthrough
the tri-color of the red, the green and the blue.
RGRGB LED lights
mBlock & mCore
mCore
8. • Stick blocks together to
make a program
• This is where the
ROBOT blocks are
More Blocks
mBlock & mCore
9. Task 1 - Light & Sound
Scripts Events
Control
More Blocks
10. Task 1 - Light & Sound
1. Press the space bar
2. Play C4 for 2 seconds
3. wait 5 seconds
4. Play A4 for 3 seconds
Challenge!
Using these blocks
11. Task 1 - Light & Sound
Challenge! Using these blocks
1. Press the space bar
2. Play C4 for 2 seconds
3. wait 5 seconds
4. both LEDs to shine
GREEN for 5 seconds.
5. both LEDs turn off