a common cathode seven segment display library
All you do differently (from the common anode routines) is to reverse the segment information sent to the segment pins.
You can easily use conditional compilation to drive both displays from one library.