These are the blocks this course uses — all of them. Every picture here is drawn by the same renderer as the lessons, so a block looks the same wherever you meet it. If a block is not on this page, it does not appear in a chapter.
🚗 Cutebot — the robot car
The blocks that come with the Cutebot extension. These are the ones that make wheels turn, headlights glow, and sensors report what the car can see.
Both wheels turn the other way, so the car reverses.
You see: The car backs up for one second.
Both wheels start turning forward, and they keep turning.
You see: The car drives straight ahead for two seconds, then stops and stays stopped.
Runs the blocks inside whenever the remote sends something.
You see: Nothing until you press the remote, then the blocks inside run once.
Switches both motors off right now.
You see: The car drives for one second and then stands still.
One wheel stops and the other drives, so the car pivots to the left.
You see: The car pivots left. Half a second is roughly a quarter turn on a smooth floor.
One wheel stops and the other drives, so the car pivots to the right.
You see: The car pivots right, about a quarter turn in half a second.
Turns a headlight on in the color you pick.
You see: The headlight you named glows in that color until you change it.
Mixes your own headlight color from red, green, and blue amounts.
You see: The headlight shows the mixed color — 255 is full and 0 is off.
Checks which button on the remote was pressed.
You see: True only for the button you named, and false for every other one.
Sets how fast each wheel turns, left and right, from -100 to 100.
You see: The car drives in a wide curve to the right, because the left wheel is faster than the right one.
Checks both line sensors at the same time.
You see: True only for the pattern you picked, like left on the line and right off it.
Measures how far away the thing in front of the car is.
You see: A number in centimeters or inches — the sonar reads from 2 cm to 400 cm.
🌈 Rainbow lights under the car
Two color lights on pin P15. They come from the NeoPixel extension, not from Cutebot.
A ready-made color you can drop into a rainbow block.
You see: One color value, like red or green.
Gets the rainbow lights ready, which you do once at the start.
You see: Nothing on its own. Here the next block turns both lights blue.
Picks the color for one rainbow light without showing it yet.
You see: The first light turns red, but only because the show block runs after it.
Sends the colors you picked to the lights.
You see: The rainbow lights under the car change to the colors you set.
🧱 Basic
The blocks almost every program starts with.
Everything inside runs again and again, without stopping.
You see: A heart that blinks on and off, about once a second, and never stops.
Everything here runs one time, the moment the micro:bit wakes up.
You see: The letters H and I slide across the screen once, then the screen goes dark.
Makes the micro:bit wait before doing the next thing.
You see: A happy face, a two second wait, then a sad face.
Puts one of the built-in pictures on the 25 lights.
You see: A smiling face made of lit dots. It holds for about 0.6 seconds, then stays on screen until something else is shown.
🎮 Input
Buttons, shaking, tilting, light — the ways the micro:bit notices you.
Reads how bright the room is, from 0 to 255.
You see: A small number in the dark and a big number in the light.
Runs the blocks inside only when someone presses that button.
You see: Nothing until you press A on the simulator board. Then a tick mark appears.
Reads the pull on the micro:bit along one axis — tilt it and the number changes.
You see: About 0 when it lies still and flat, and about 1000 straight down.
📡 Radio
One micro:bit talking to another with no wires.
Sends one number over the radio.
You see: The other micro:bit on the same group receives that number.
Puts this micro:bit on one radio channel, from 0 to 255.
You see: Nothing on its own, but now it only hears micro:bits on the same group.
Runs the blocks inside when a number arrives.
You see: Nothing until a number comes in, then the blocks inside run.
Runs the blocks inside when a name and number arrive together.
You see: Nothing until a message comes in, then the blocks inside run.
Sends a name and a number together.
You see: The other micro:bit receives both parts in one message.
🔁 Loops
Doing the same thing more than once.
Runs the blocks inside a set number of times.
You see: The blocks inside run again and again until the count is finished.
🔀 Logic
Choosing between paths, and testing whether something is true.
True only when both tests are true.
You see: True or false for the pair of tests together.
Compares two numbers.
You see: True or false, which you drop into an if block.
Adds another test for when the one above it was false.
You see: The first test that is true wins and the rest are skipped.
Picks one of two paths, one for true and one for false.
You see: Exactly one of the two groups runs, never both.
📦 Variables
Named boxes that remember a value.
Adds an amount to what is already in the variable.
You see: The variable grows by that amount every time the block runs.
Puts a value into a named box you can read again later.
You see: Nothing on the screen, but the value is now stored under that name.
🔢 Math
Numbers and arithmetic.
Adds, subtracts, multiplies, or divides two numbers.
You see: One number, which you drop into another block.
Picks a random whole number between two numbers.
You see: The car drives off at a different speed and curve most times you run it.