How to drive many leds with a few io-pins
From Just in Time
For any straightforward led matrix you can double the number of leds by using tri-state switching and parallel reversed leds. This means i.e. that with only 5 I/O pins you can switch 12 leds.