View on GitHub

code-club-2025-6

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

Lesson 2: Buttons & Gestures

In this lesson, you’ll learn how to use the buttons and shake gesture on the Micro:bit to make it display different icons or numbers. By the end, you’ll create a mini controller and even a digital dice!


What You’ll Learn


Steps

1. Open MakeCode

Go to MakeCode for Micro:bit in your browser.

2. Start a New Project

3. Show Icons with Buttons

Test it:


4. Shake to Roll a Dice

Test it:


5. Combine Buttons and Shake

Let’s turn the Micro:bit into a simple controller:

Update your code:

Test it:


6. Extra Challenge (Optional)


Reflection