Example Code for micro:bit-Drive the LED with IO port Output
Last revision 2025/12/30
This article offers a comprehensive guide on using micro:bit's IO port output to drive an LED, including example code, software preparation, and programming platform details.
Software Preparation
Motor drive library address: https://github.com/DFRobot/pxt-micro-IOBOX. About how to install the library?
Programming Platform: makecode graphical programming
Sample Code

Result
The effect of the prorgam: drive the LED with IO port.
Was this article helpful?
