import time
from neopixel import Neopixel
pixels = Neopixel(17, 0, 6, "GRB")
colors = [
(0xb6, 0xe4, 0x30), # Color 1
(0x42, 0xd1, 0xe0), # Color 2
(0xff, 0x00, 0x00), # Color 3
(0x00, 0xff, 0x00), # Color 4
(0x00, 0x00, 0xff), # Color 5
(0xff, 0xff, 0x00), # Color 6
(0x00, 0xff, 0xff), # Color 7
(0xff, 0x00, 0xff), # Color 8
(0x80, 0x00, 0x80), # Color 9
]
pixel_index = 0
color_index = 0
while True:
pixels.set_pixel(pixel_index, colors[color_index])
pixels.show()
pixel_index += 1
if pixel_index == 16:
pixel_index = 0
color_index = (color_index + 1) % 9 # Updated to cycle through 9 colors
time.sleep(0.1)