Example Code for micro:bit-Shy micro:bit
This article offers example code for programming a shy micro:bit, detailing hardware setup, wiring diagrams, and sample codes for both Mind+ and MakeCode platforms, designed to assist users in learning and executing micro:bit projects involving touch sensors and buzzer modules.
Hardware Preparation
![]() |
![]() |
![]() |
|---|---|---|
| BOS0008 Touch Sensor | BOS0020 Buzzer Module | MBT0039 micro:bit |
![]() |
||
| BOS0040 micro:bit Boson Expansion board |
Software Preparation
MakeCode, Mind+
Wiring Diagram

Result
Video Demo
| Programming |
|---|
![]() |
Additional Information
Program Flowchart:

Was this article helpful?





