led multiplexing

See this for the basics of driving an array:-
http://www.thebox.myzen.co.uk/Workshop/LED_Matrix.html