The MAX7219 is a driver designed for driving 7 segment LED displays. In the datasheet it shows a typical use such as this: