Code Example for micro:bit-Rush-Answer Machine

Last revision 2025/12/08

This article provides a comprehensive guide on programming a Rush-Answer Machine using micro:bit, featuring hardware setup, software preparation, wiring instructions, and sample code for Mind+ and Makecode platforms.

Hardware Preparation

BOS0002 Push Button Module BOS0002 Push Button Module BOS0017 LED Module
BOS0017 LED Module MBT0039 Micro:bit BOS0040 Micro:bit BOSON Expansion Board

Tips: micro:bit and Micro:bit BOSON expansion boards are used in the programming example.

Software Preparation

  • Development Tools: Mind+ or Makecode
  • Mind+ Download Link: Mind+
  • Makecode Download Link: Makecode

Wiring Diagram

Other Preparation Work

  1. Connect the micro:bit to the BOS0040 Micro:bit BOSON Expansion Board.
  2. Ensure all components are properly wired as per the diagram.

Sample Code

Mind+ Sample Program

Result

Pressing one button turns on its LED and disables the other. Refer to the demo video:

Additional Information

Flow Chart:

Was this article helpful?

TOP