import neopixel
from machine import Pin
import time
ŠTEVILO_LED = 60
ledi = neopixel.NeoPixel(Pin(15), ŠTEVILO_LED)
def premikaj_kazalec(sekunda):
if sekunda < ŠTEVILO_LED:
ledi[sekunda] = (0, 0, 255)
ledi.write()
time.sleep(1)
ledi[sekunda] = (0, 0, 0)
ledi.write()
while True:
for sekunda in range(ŠTEVILO_LED):
premikaj_kazalec(sekunda)