Am einfachsten schaust du dir mal das an:
http://www.mikrocontroller.net/articles/LED-Matrix