Charlieplexing, Animating by Columns with 30 LEDs in a 5x6 array

There is also a limit on the total current the Arduino can source or sink through all outputs combined. For an uno (based on an atmega328) this is around 200mA.

Very good to know, as I just got a few Arduino Mega boards in, and it'll be even easier to over do it on them.