Page 132 - KEC Khaitan C6 Flipbook
P. 132
∑ Connect the Micro:bit via USB and transfer the file.
∑ Watch the heart appear on the Micro:bit screen!
Step 5 Using Input Buttons
∑ Go to Input, drag the On button A pressed block.
∑ Inside this block, add a Show Icon block.
∑ Choose a Music icon.
∑ Test it in the simulator, then download and upload to the Micro:bit.
Step 6 Making Sounds with Micro:bit
∑ In Input, select On button A pressed.
∑ Go to Music and add Play tone block.
∑ Choose a note (e.g., Middle C).
∑ Click Play in the simulator to hear the sound.
130 Premium Edition-VI

