micro:bit Block Editor – A graphical programming tool powered by MicrosoftSharath
Microbit can be programmed using a different type of programming languages. The block editor is easy to program and recommended for beginners. There is no installation needed on your computer. You can simply open the Microbit Make Code website in the web browser and start coding right there. So, let’s discuss this in detail.
The first thing, you need to do is open the microbit MakeCode website.
Now you can see the block editor on the browser window. It has the following important parts.
Live Simulator: This shows the live simulation of code that you write on the workspace. If you write a code that displays a dot when you press button A, the simulator shows it in real-time instead of uploading it into the microbit.
There are few other useful things you can do with the simulator. They are explained below
Stop the simulator:
This feature allows you to stop live simulation happening on the screen. Sometimes, it will be distracting while you are coding. This feature helps to avoid distractions also in performance too (In case your PC is slow).
Restart the simulator:
This feature will restart the code and starts executing from the beginning. Same as pressing the reset button on your microbit.
This feature allows you to see the code execution in slow motion. Once you press this button the simulator runs in slow motion as well as it shows the current coding sequence in the workspace too. You can stop this by clicking again the same icon.
If are programming a music code in the microbit it will be making sound while you play it in the simulator. You can mute or unmute it here.
This mode will open the simulator in full screen. You can set back to normal by clicking the exit full-screen icon.
Exit full screen:
Pressing this icon will exit the full screen.
Toolbox: This has all the blocks needed to code. These blocks are categorized as Basic, Input, Music, Radio, Math, Variables, Loops, Logics and more.
Workspace: This is where you create the program. You have to drag and drop the blocks from the toolbox according to your requirement. We have seen how to program in block editor in this blog.
The block editor has few other features like
- Share the project
- File re-name
- Zoom in and zoom out
Share the project:
This option allows you to share the project with someone. It will generate a unique link for the block code to share with someone.
Using this you can add packages for devices like Bluetooth Services, NeoPixel and changing the theme, Languages,etc,.
You can name your file here and hit save. This will download the HEX file with the filename you provided.
Undo and Re-do:
Undo will go one step backward of the code you build and Re-do will go one step forward. This helps you correct your program if you made a mistake. You can access it in the bottom right side of the editor with bent arrow icons.
Zoom in and Zoom Out:
This will increase the size of the blocks in the workspace according to you. It is available in the bottom right side of the editor marked with ‘+’ and ‘-’ sign.
These are the basic overview of MakeCode Block editor. You can explore more by yourself for better understanding the editor.