Page 157 - Trackpad_V1_Book 7_Flipbook
P. 157
MUSIC BLOCKS
Music Blocks allow us to play, stop, and control anything related to music and sounds.
Plays a musical tone through pin P0 for a set number of beats.
Stops playing the sound through pin P0 for the number of specified beats.
Plays a melody from built-in melodies or allows us to compose one
and use it.
CREATING A PROJECT
To create a project, visit this link: https://
makecode.microbit.org. Then, click on
the New Project button.
Give your project a name and click on
Create.
Select and drag the blocks from the left
side to the Workspace area and combine
them to make meaningful programs.
RUNNING A PROJECT
After we are done creating our project, we need to simulate or test it before we can upload it to a
micro:bit. The simulator is used for this purpose and works exactly like a physical micro:bit.
Notice the simulator on the left displaying the number 5 as instructed by the blocks on the right.
SAVING A PROJECT
All work done in the Makecode editor is saved automatically without the need to do it manually.
You can access all your projects from the Homepage.
154 Trackpad (Version 1.0)-VII Techipedia 155

