Project 2: Light A Single LED

Click to download the code for this lesson
(1)Project Description:
(1)Project Description:The LED dot matrix consists of 25 LEDs arranged in a 5 by 5 square. In order to locate these LEDs quickly, as the figure shown below, we can regarded this matrix as a coordinate system and create two aces by marking those in rows from 0 to 4 from top to bottom, and the ones in columns from 0 to 4 from the left to the right. Therefore, the LED sat in the second of the first line is (1,0) and the LED positioned in the fifth of the fourth column is (3,4) and others likewise.

(2)Components Needed:
Micro:bit main board V2
Micro USB cable
(3)Test Code:
Attach the Micro:bit main board V2 to your computer via the Micro USB cable and begin editing.

Complete Program :

(4)Test Results
After uploading the code, you will observe the Microbit board display the following effect: (1,0) lights up for 0.5 seconds before turning off, followed by (3,4) lighting up for 0.5 seconds before turning off, repeating in a loop.
