A seven segment display is typically driven by a set of seven digital outputs from a microcontroller or other digital logic device. A common cathode display is driven by sinking current from each output pin to ground when the segment should be lit. For a common anode display, the pins are driven by sourcing current to the display.