Basic Programming using
MakeCode Editor
What is MakeCode Editor?
• MakeCode is a programming platform
designed to make coding the BBC Micro:bit
easy and fun.
• It works directly in a web browser and offline.
• It allows students to create programs using
colorful blocks or switch to JavaScript or
Python for text-based coding.
• It includes a built-in simulator so learners can
test their code before using the real Micro:bit.
Features of MakeCode Editor
• Block-Based Coding: Drag and drop code blocks
like puzzle pieces.
• Text Coding Option: View or edit the same
program in JavaScript or Python.
• Simulator: Test programs instantly on a virtual
Micro:bit.
• Download to Micro:bit: Transfer code to device
via USB or wireless.
• Project Saving: Save locally or to the cloud for
later use.
Code Block Categories in MakeCode
• Blocks are grouped into categories by color and function.
• Basic – (Purple): Controls simple outputs (Show LEDs, Pause, Clear
Screen).
• Input – (Blue): Responds to actions or sensor input (On Button A pressed,
On Shake).
• Music – (Pink): Create sounds and melodies.
• (LED) – Yellow: Control the 5×5 LED grid one light at a time.
• (Radio) – (Green): Send and receive wireless messages.
• Loops – (Orange): Repeat code or run forever.
• Logic – (Light Blue): Make decisions and compare values.
• Variables – (Dark Blue): Store numbers, text, or data.
• Math – (Teal): Perform calculations and random numbers.
• Functions – (Dark Purple): Make reusable blocks of code.
• Pins – (Brown): Connect to external devices.
• Serial – (Grey): Send or receive data with a computer.
• Advanced / More: Access extra features like Images, Bluetooth, Control.
Importance of MakeCode in Learning
Technology.
• Makes programming visual, easy, and fun.
• Encourages students to experiment and
innovate.
• Connects coding to real-world electronics and
physical computing.
• Builds a strong foundation for text-based
coding later.
Examples of MakeCode Projects
• Scroll your name on the LED grid.
• Shake the Micro:bit to roll a dice.
• Use button A and B to make a score counter.
• Send messages wirelessly between two
Micro:bits.