Added code to control a 4 digit 7 segment display