Using another delay method to realize LED flicker