Code Example for micro:bit-Getting-off Indicator
Last revision 2025/12/08
This article offers a detailed guide on programming a micro:bit getting-off indicator, featuring hardware setup, software tools, wiring diagrams, and sample code for practical learning.
Hardware Preparation
![]() |
![]() |
|
|---|---|---|
| BOS0002 Push Button Module | BOS0020 Buzzer Module | BOS0017 LED Module |
![]() |
![]() |
|
| MBT0039 Micro:bit | BOS0040 Micro:bit BOSON Expansion Board |
Software Preparation
Wiring Diagram

Other Preparation Work
- Connect the micro:bit to the BOS0040 Micro:bit BOSON Expansion Board.
- Ensure all components are properly wired as per the diagram.
Sample Code
Mind+ Sample Program

Result
The buzzer sounds and LED lights up when the button is pressed. Refer to the demo video:

Additional Information
Flow Chart:

Was this article helpful?




