just a small code example to display numbers on a 7 segment display should be easy to rewrite for your own needs.
Fork of 7SegmentDisplay by
History
Wrote correction to matrix so it works with pinouts of LDQ-N514R1, a 4 digit, 7-segment display (common cathode)
2016-09-03, by captaintim [Sat, 03 Sep 2016 17:31:45 +0000] rev 1
Wrote correction to matrix so it works with pinouts of LDQ-N514R1, a 4 digit, 7-segment display (common cathode)
7 Segment Display Basic
2012-12-29, by ShingyoujiPai [Sat, 29 Dec 2012 12:00:01 +0000] rev 0
7 Segment Display Basic