7 segment LED display not working when using common pin as cathode?
You don't. Multisegment LEDs with common pins are manufactured in a specific arrangement, and this cannot be changed after fabrication.