Example Code for micro:bit-MindPlus-Breathing light

This guide walks you through creating a breathing light using micro:bit and Mind+ software, including hardware setup, wiring, and coding instructions to achieve a twinkling LED effect.

Hardware Preparation

  • Components: 2 jumper wires, 1 LED light, 1 resistor of 220Ω.
  • Pin: connect the LED to P1.

Software Preparation

  • Mind+: Download and install Mind+ Software; install the driver (Refer to the built-in tutorials in mind+).

Wiring Diagram

Other Preparation Work

  • For Mind+: Click "Code" at the top right corner to switch to "code mode"; Drag and combine blocks to code; Connect micro:bit to the computer with USB; Select the related COM port in "Connect Device" Drop-down box; Click "Upload".

Sample Code

  • Screenshot of mind+ graphical codes:

Result

The LED light blinks like twinkle stars.

Was this article helpful?

TOP