Example Code for micro:bit-Smart Desk Lamp
Last revision 2026/01/04
This content offers example codes and wiring diagrams for building a smart desk lamp using micro:bit, guiding users through programming with MakeCode and Mind+ using provided user libraries.
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 ScreenshotProgram Link:click here | Mind+ Program Screenshot |
![]() |
![]() |
Result

Additional Information

Was this article helpful?


