Introduction

How it works

A micro:bit is a small computer with 25 lights and two buttons. It does nothing until you give it a program. You build the program from blocks in MakeCode and download it onto the micro:bit. A block such as on button A pressed waits for that button, then runs the blocks inside it from top to bottom.

Two micro:bit programs side by side. On the left, button A is pressed and its block runs the three blocks inside it from top to bottom, showing a small heart, then a big heart, then clearing the lights; on the right, button B is pressed and its one block scrolls a name across the lights.