import machine, neopixel
from utime import sleep
np = neopixel.NeoPixel(machine.Pin(18), 16)
inc = 0
while True:
binary = str(bin(inc))[2:]
binary = ((16- len(binary)) * "2") + binary
print(inc)
for i, b in enumerate(binary):
if b == "1":
np[i] = [255,25,5]
elif b == "0":
np[i] = [0,250,5]
inc += 1
np.write()
#sleep(0.1)