User Manual
11 12
Project 4 : Music Player
Diculty Level
Part List
Description
4. Music Player
This demo will teach you how to use
the 2 buttons on micro:bit to play
music.
1x Grove - Speaker
1x Grove Shield for micro:bit
1x micro:bit
1
2
3
Steps
2. Add an input block for on button A is pressed, the
speaker executes play tone middle C for 1 beat.
4. Press button A or button B to play the sounds.
Try to use block on button A+B pressed and let the speaker play
other sounds or melodies.
3. Add an input block for on button B is pressed, the
speaker executes start melody dadadum once.
3. Click Download to transfer your code in your
micro:bit!
1
1
2
2
3
2
1
1
2
3
3
P0/P14