es gibt fertige 7-Segment-Module, die kann man einfach per BCD-Code ansteuern :

https://www.roboternetz.de/phpBB2/viewtopic.php?t=6278