import time
from machine import Pin
from neopixel import NeoPixel

pin = Pin(4, Pin.OUT)   # set GPIO0 to output to drive NeoPixels
np = NeoPixel(pin, 17)   # create NeoPixel driver on GPIO0 for 1 pixels

while True:
    for i in range(60, 255, 35):
        for j in range(16):
            np[j] = (255, i, 255)
            np.write()  
            time.sleep(.1)
    for k in range(255, 50, -25):
         for j in range(16):
            np[j] = (255, 255, k)
            np.write()  
            time.sleep(.1)
    for i in range(50, 255, 35):
        for j in range(16):
            np[j] = (i, 255, i)
            np.write()  
            time.sleep(.1)
    for i in range(255, 100, -35):
        for j in range(16):
            np[j] = (i, 255, 255)
            np.write()  
            time.sleep(.1)
    for i in range(150, 255, 25):
        for j in range(16):
            np[j] = (100, 150, i)
            np.write()  
            time.sleep(.1)