Example Code for micro:bit-Blinking LED
Last revision 2025/12/31
This article offers a detailed guide on connecting and programming LEDs with the micro:bit, featuring hardware setup, software libraries including MakeCode and Mind+ links, wiring diagrams, and sample code to create a blinking LED effect.
Hardware Preparation
Connecting LEDs to C0, C1, and C2
Software Preparation
-
MakeCode User Library Link: click here
-
Mind+ Upload Mode User Library Link: click here
-
Mind+ Python Mode User Library Link: click here
Wiring Diagram

Sample Code
| MakeCode Program Screenshot Program Link:click here |
Mind+ Program Screenshot |
|---|---|
![]() |
![]() |
Result

Was this article helpful?


