flag(clock_pin, data_pin, delay, n = 8): for x in range(n): apa102(clock_pin, data_pin, colors(x, n, red, red)) time.sleep(0.1) for x in ran