Page 130 - 2627_Trackpad Pro_C-6
P. 130
∑ 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.
128 Premium Edition-VI

