Skip to content

Latest commit

 

History

History
52 lines (21 loc) · 1.25 KB

Nezha_Inventor_s_kit_for_microbit_case_18.md

File metadata and controls

52 lines (21 loc) · 1.25 KB

Case 18: Music Box

Introduction

This is a music box. We can control the buzzer on the micro:bit to emit different melody by pressing the button A on the micro:bit.

Quick to Start

Materials

Nezha expansion board × 1

micro:bit × 1

Tips: You may need to purchase Nezha Inventor's Kit if you want all the above compoents.

Connection Diagram

Insert the micro:bit to Nezha expansion board.

MakeCode Programming

Programme as the picture shows:

Link

Link: https://makecode.microbit.org/_gRoDU7R96LTf

You may also downoad it directly below:

<iframe style="position:absolute;top:0;left:0;width:100%;height:100%;" src="https://makecode.microbit.org/#pub:_gRoDU7R96LTf" frameborder="0" sandbox="allow-popups allow-forms allow-scripts allow-same-origin"></iframe>

Result

Press button A to switch the music.