Tlc5940 7 Segment

I am looking for a better way to display 7 segments any links to code would be appreciated

This tells you what you need to do using arrays.
http://www.thebox.myzen.co.uk/Tutorial/Arrays.html