from machine import Pin
from utime import sleep
import neopixel
import random
import time
NUM_LEDS = 16
leds = neopixel. NeoPixel (Pin(15), NUM_LEDS)
ledSet1=int(NUM_LEDS/3)
while True:
for x1 in range(ledSet1):
leds[x1+ledSet1+ledSet1]=[0,0,0]
leds[x1]=[255,7,7]
leds.write()
sleep(1)
for x2 in range(ledSet1):
leds[x2]=[0,0,0]
leds[x2+ledSet1]=[7,255,7]
leds.write()
sleep(1)
for x3 in range(ledSet1):
leds[x3+ledSet1]=[0,0,0]
leds[x3+ledSet1+ledSet1]=[7,7,255]
leds.write()
sleep(1)