Introduction
Want to make an LED light up and easily change their colours?
In this guide, we will learn to use a handy little LED module and make it blink using the micro:bit!
After completing this guide, you will understand how to use an LED and create a simple program using MakeCode.Â
If you're using the Micro:bit Advent Calendar, you'll need the contents of the bags labelled 1 and 25.
-
-
-
-
-
-
-
-
-
basic.forever(function () { pins.digitalWritePin(DigitalPin.P0, 1) basic.pause(250) pins.digitalWritePin(DigitalPin.P0, 0) basic.pause(250) })
-