Example Code for micro:bit-Mind+ LED Ring Clock

Last revision 2025/12/09

This article provides step-by-step instructions for creating a unique LED ring clock using micro:bit and the Mind+ platform, including hardware setup, adding RGB LED extension libraries, wiring diagrams, and sample code to achieve a fully functional and visually appealing clock display.

Hardware Preparation

  • micro:bit × 1
  • IO Expansion Board × 1
  • RGB LED ring- 12 LED beads × 1
  • RTC real-time clock module × 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

Use the LED ring module to design a unique clock.

Was this article helpful?

TOP