Example Code for micro:bit-Shy micro:bit
micro:bit is very shy. He only smiles when no one touches the touch sensor. Otherwise, he shows a crying face on his LED matrix and makes a "crying sound".
Hardware Preparation
![]() |
![]() |
![]() |
|---|---|---|
| BOS0008 Touch Sensor | BOS0020 Buzzer Module | MBT0039 micro:bit |
![]() |
||
| BOS0040 micro:bit Boson Expansion board |
Wiring Diagram
Connection Diagram:

Additional Information
Program Flowchart:

Video Demo
| Programming |
|---|
![]() |
Was this article helpful?





