Driving a 7-segment display using a shift register