Example Code for micro:bit-Light-controlled Light
Make a light-controlled light whose brightness can vary with the light.
Hardware Preparation
![]() |
![]() |
![]() |
|---|---|---|
| BOS0019 Multicolor String Light | BOS0004 Light Sensor | BOS0035 Mainboard-3IO |
![]() |
![]() |
|
| MBT0039 micro:bit | BOS0040 micro:bit BOSON Expansion Board |
Software Preparation
- Mind+
- MakeCode
Wiring Diagram
Non-programming Project
Connection Diagram:

Programming Project
Connection Diagram:

Other Preparation Work
micro:bit and its expansion board will be used in programming projects.
Result
Video Demo
| Non-programming | Programming |
|---|---|
![]() |
![]() |
Additional Information
Program Flowchart:

Was this article helpful?







