Example Code for micro:bit-LED Light Flash

Last revision 2026/01/18

The article offers a comprehensive tutorial on using micro:bit and Maqueen Lite to program LED light flashing through Makecode. It covers necessary hardware and software preparations, provides a wiring diagram, and includes sample code for practical implementation, enhancing educational robotics programming skills.

Hardware Preparation

  • Maqueen Lite-micro:bit Educational Programming Robot Platform x 1 (ROB0148)
  • micro:bit board x 1

Software Preparation

  1. Makecode graphical online programming platform: makecode.microbit.org
  2. Maqueen library: Search for "dfrobot" in makecode extension and select "maqueen".

Wiring Diagram

No additional wiring required. The LED lights and buzzer are integrated with Maqueen.

Other Preparation Work

Ensure Maqueen is powered on.

Sample Code

Screenshot of Makecode Graphical Program:


Makecode Program Link: https://makecode.microbit.org/_5AuHAMPPmD28

Result

LED Light Flash

Additional Information


Was this article helpful?

TOP