This function sets the color of CoDrone mini LED light and makes it flash in a particular pre-set pattern at a given speed.
LED_pattern(red, green, blue, mode)
LED_pattern(red, green, blue, mode, speed)
red: int value from 0 to 255
green: int value from 0 to 255
blue: int value from 0 to 255
mode: an enum, which can be selected from the following predefined list: BLINK, DOUBLE_BLINK, PULSE, FADE_IN, FADE_OUT
speed: int value from 1-10, which represents the speed of the pattern. 1 is slowest, 10 is fastest. Default value is 5.