Built-in programmable 5x5 LED matrix
LED stands for light-emitting diode. Just like a normal diode, an LED allows the current to flow only in one direction. An LED has two pins (or legs): an anode and a cathode. Just as with any other diode, we must connect the anode of an LED to a positive pin and the cathode to the ground or negative pin of the power source. Then, the LED will allow the current to flow through it. However, if we connect the anode pin to the ground/negative pin and the cathode to the positive pin of the source, the LED will not let the current pass through it. When current passes through LEDs, they glow. We will study LEDs and their programming in detail in this and the next chapter. This chapter focuses on the built-in programmable 5x5 LED matrix of the Micro:bit board and the next chapter focuses on external discrete LEDs. Figure 5.1 shows an LED matrix. It has 5 rows and 5 columns, totaling 25 LEDs:
Figure 5.1 – Built-in programmable...