Add the led_pattern function