Added speed parameter to led_pulse