Analog LED Matrix Made with Multiplexer

Using binary data, each button (S0, S1, and S2) sends a series of high and low (0s and 1s) values to the multiplexer. When pressed (or unpressed), each button sends bit combinations to the multiplexer, signaling which singular led should turn on and which ones remain off.

Bonus: In combination with a variable resistor such as a photo resistor (example on the left) placed on the second pin, one can also control the brightness of each lit led.