Welcome to the DFRobot blog
:
www.dfrobot.com/blog-tag-microbit.html
49
/
86
1
×
USB cable
Connection
Connect micro: bit to the computer and plug the headphone into the jack.
Connect the motion sensor module to P1.
Note: since P0 is occupied by the audio jack, it will no longer be available to connect other
modules.
Program
Task 1: Electronic music box
Goal: In this part, we will learn how to let micro: bit play a piece of music.
STEP 1: In this step, we will use the “Music” function. Move the function “start melody ‘dadadum’
repeating once” from “Music” into the “forever” loop. You may also choose other songs that are
available from the list.