It's just a simple matrix using the DIG and SEG output pins:
You might want to re-order the row and column outputs to accommodate your project.