import time
import neopixel
from machine import Pin, RTC
WHITE = (255, 255, 255)
ORANGE = (255, 95, 31)
BROWN = (102, 51, 0)
BLACK = (0, 0, 0)
rtc = RTC()
print(rtc.datetime())
# (year, month, day, weekday, hours, minutes, seconds, subseconds)
rtc.datetime((2023, 10, 2, 2, 19, 29, 0, 1))
print(rtc.datetime())
data_pin = Pin(0, Pin.OUT)
led_strip = neopixel.NeoPixel(pin=data_pin, n=12, bpp=3, timing=1)
i = 0
while True:
led_strip[i] = BROWN
led_strip[i - 1] = BLACK
led_strip.write()
i += 1
if i > 11:
i = 0
print(rtc.datetime())
time.sleep(1)