Skip to main content

Subsection 10.2.1 34 LEDs, and Not 34 Wires

An LED lights when current flows through it in one direction, so controlling one LED means controlling one path from a positive supply, through the LED, to ground. Thirty-four LEDs with thirty-four separate paths is thirty-four wires plus a common return, and the display in your kit does not have that many pins. It has fourteen.
The way that works is a trick you will see again in every display you ever meet, and it has two halves. The first half is sharing: the LEDs are wired in a grid rather than individually, so that a single wire reaches many of them at once and the LED that lights is the one where an energized row crosses an energized column. A grid of \(r\) rows and \(c\) columns reaches \(r \times c\) LEDs with \(r + c\) wires, and that gap is the whole saving.
The second half is time. A grid can only light one row at a time without lighting things you did not ask for, so the display shows one row, then the next, then the next, cycling through all of them fast enough that your eye cannot follow. Persistence of vision does the rest: what you see is a steady image, even though at every instant most of the display is dark. This is time-division multiplexing, and it is why a display like this is never really “set and forget”: the image only exists because something is rewriting it, thousands of times a second, forever.