Micro:bit Topics Overview

Buttons A and B (done)

Detect button presses with button_a.is_pressed().

Example: Show different messages when A or B is pressed.

Temperature and Light Sensors (done)

Use the micro:bit’s built-in sensors with temperature() and display.read_light_level().

Basic Loops and Delays

Use while True: loops and sleep() for timing and animations.

Shake Detector (Accelerometer)

Detect motion and respond with a message or animation.

Example: if accelerometer.was_gesture('shake'):display.show(Image.SURPRISED)

Compass and Direction Finder

Use the compass to display directions (N, S, E, W).

Requires calibration with compass.calibrate().

Simple Dice Simulator

Roll a digital dice when shaken and display a random number (1–6).

Uses the random module.

Reaction Timer Game

Test how fast a player can press a button after a signal.

Scrolling Name Tag

Create a name badge that scrolls your name continuously.