Example Code for micro:bit-Mind+ LED Ring Cascade
Last revision 2025/12/09
This article teaches how to cascade RGB LED rings using micro:bit and Mind+, providing detailed steps on hardware and software setup, including sample code to create visually stunning neon light effects.
Hardware Preparation
- micro:bit × 1
- IO Expansion Board × 1
- RGB LED ring- 12 LED beads × 1
- RGB LED ring- 16 LED beads × 1
- RGB LED ring- 24 LED beads × 1
- PH2.0-3P digital cable × 1
- PH2.0-3P male-to-male cable × 1
Software Preparation
The extension library of the RGB LED command needs to be added before using the RGB LED ring. Open Mind+ platform, click "Extensions" in the bottom right corner, and in the "MCU" menu bar, select "micro:bit", the MCU to be used. Then find "WS2812 RGB LED" in the "Display" menu bar and click it to add the RGB LED extension library, then the display module will appear in the command area.
Wiring Diagram
It’s easy to cascade the LED ring. Just connect the OUT port of the first lamp ring to the IN port of the second lamp ring through the PH2.0-3P male-to-male cable.

Other Preparation Work
Open Mind+ platform, click "Extensions" in the bottom right corner, and in the "MCU" menu bar, select "micro:bit", the MCU to be used. Then find "WS2812 RGB LED" in the "Display" menu bar and click it to add the RGB LED extension library, then the display module will appear in the command area.
Note: When using the cascaded lamp ring, the power supply may be unstable due to excessive beads, which can be resolved by using a 5V or external power supply.
Sample Code

Result
Achieve a dazzling neon light effect similar to project 1 by cascading three types of LED rings.
Was this article helpful?
