I\'m trying to make a 0-9999 counter with arduino. The segment flickers because it is with scan mode. If I make the delay too small, the LEDs that should not light up are slight