Detect button presses with button_a.is_pressed().
Example: Show different messages when A or B is pressed.
Use the micro:bit’s built-in sensors with temperature() and display.read_light_level().
Use while True: loops and sleep() for timing and animations.
Detect motion and respond with a message or animation.
Example: if accelerometer.was_gesture('shake'): → display.show(Image.SURPRISED)
Use the compass to display directions (N, S, E, W).
Requires calibration with compass.calibrate().
Roll a digital dice when shaken and display a random number (1–6).
Uses the random module.
Test how fast a player can press a button after a signal.
Create a name badge that scrolls your name continuously.