4 digits 7s display + 74HC595

PaulS:
Get rid of the for loop and the switch statement and cases. Just execute the 4 instructions in order.

What for?
If I do that I would be lightning always the same digit, and showing the same number.