View on GitHub

code-club-2025-6

2025/6 Code Club resources/lessons for BBC Micro:Bit and Cutebot

Lesson 3: Variables

In this lesson, you’ll learn how to use variables on the Micro:bit to store and change information. By the end, you’ll build a working counter app that increases, decreases, and resets numbers.


What You’ll Learn


Steps

1. Open MakeCode

Go to MakeCode for Micro:bit: https://makecode.microbit.org/

2. Start a New Project


3. Make a Variable

Test it:


4. Button A: Increase the Number

Test it:


5. Button B: Decrease the Number

Test it:


6. Reset the Counter

Test it:


7. Extra Challenges (Optional)

Try one of these:


Reflection