pulse counter set flash of leds in delay only for led 1