Help displaying numbers on 7 segment display

You need to modify the code you didn't post.