Example Code for micro:bit-Mind+ Dazzling Neon Light
Last revision 2025/12/09
This article offers a comprehensive guide on using micro:bit with Mind+ platform to create dazzling neon light effects using an RGB LED ring, complete with hardware setup, software instructions, and sample code for achieving dynamic rainbow color transitions.
Hardware Preparation
- micro:bit × 1
- IO Expansion Board × 1
- RGB LED Ring- 12 LED Beads × 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

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.
Sample Code

Result
Display color gradients of the 12 LED beads. The color of the lamp bead changes by one level successively around the circle to form a rotating effect as if it’s a dynamic rainbow.

Was this article helpful?
