EF03419
Quick Start
Preparation
1 x Snowflake Buzzer
1 x micro:bit(Sold separately)
3 x crocodile clip lines(Sold separately)
Hardware Connect
Connect the black crocodile clip line to the GND port of the micro:bit, the other side of the black crocodile clip line to the G port of the snowflake buzzer.
Connect the red crocodile clip line to the 3V port of the micro:bit, the other side of the red crocodile clip line to the V port of the snowflake buzzer.
Connect the yellow crocodile clip line to the 0 port of the micro:bit, the other side of the yellow crocodile clip line to the S port of the snowflake buzzer.
Software
Step 1
Step 2
Set "on button B pressed" and write a little bit of music(as below picture).
Program
Program link:https://makecode.microbit.org/_W27acib6j8D3
You also could directly download program by visiting website as below:
Result
When the button A pressed, a piece of "Jingle Bells" plays.
When the button B pressed, a piece of "Jingle Bells" plays.
Collections: ElecFreaks
Type: micro:bit add on