Welcome to the DFRobot blog
:
www.dfrobot.com/blog-tag-microbit.html
70
/
86
STEP 3: In this step, the “and” function and the operator “<” under “Logic” will be applied to judge
the input value range of P1. Functions from “NeoPixel” will be used to control the lighting effect of
the GRB LED strip. And functions from “Music” and “pause (ms)” from “Basic” will be taken to
control the music. The following is the finished program in this step:
STEP 4: Since there are only 7 LEDs, so the eighth sound "do’" can be expressed by a different
lighting effect.
STEP 5: Combine all above listed functions altogether, the final program goes as below:
Exercises
You must have noticed that there is the 5
×
5 LED matrix on the micro:bit. Why do not make a full use
of it! Try to use it to display corresponding music notes when they have being played.