Example Code for micro:bit-RGB Breathing Ambient Light
Last revision 2026/01/18
The article guides readers through creating an RGB breathing ambient light using micro:bit and Maqueen Lite, detailing hardware and software requirements, wiring, and sample code execution on the Makecode platform.
Hardware Preparation
- Maqueen Lite-micro:bit Educational Programming Robot Platform x 1 (ROB0148)
- micro:bit board x 1
Software Preparation
- Makecode graphical online programming platform: makecode.microbit.org
- Maqueen library: Search for "dfrobot" in makecode extension and select "maqueen", or paste https://github.com/DFRobot/pxt-maqueen
- Load the LED strip library: click “Setting”->“Extension”-> “Neopixel”.

Wiring Diagram
No additional wiring required. The RGB ambient light is integrated with Maqueen.
Other Preparation Work
Ensure Maqueen is powered correctly.
Sample Code
Screenshot of Makecode Graphical Program:

Makecode Program Link: https://makecode.microbit.org/_7t0HFXHesULM
Result

Was this article helpful?
