43 lines
No EOL
1 KiB
Python
43 lines
No EOL
1 KiB
Python
import machine
|
|
import neopixel
|
|
import time
|
|
|
|
np = neopixel.NeoPixel(machine.Pin(0), 24)
|
|
|
|
for i in range(9999999999999999999):
|
|
for i in range(24):
|
|
np[i % 24] = (0, 0, 255)
|
|
np.write()
|
|
time.sleep(0.01)
|
|
for i in range(24):
|
|
np[i % 24] = (123, 0, 255)
|
|
np.write()
|
|
time.sleep(0.01)
|
|
for i in range(24):
|
|
np[i % 24] = (255, 0, 255)
|
|
np.write()
|
|
time.sleep(0.01)
|
|
for i in range(24):
|
|
np[i % 24] = (255, 0, 75)
|
|
np.write()
|
|
time.sleep(0.01)
|
|
for i in range(24):
|
|
np[i % 24] = (255, 0, 0)
|
|
np.write()
|
|
time.sleep(0.01)
|
|
for i in range(24):
|
|
np[i % 24] = (255, 75, 0)
|
|
np.write()
|
|
time.sleep(0.01)
|
|
for i in range(24):
|
|
np[i % 24] = (255, 255, 0)
|
|
np.write()
|
|
time.sleep(0.01)
|
|
for i in range(24):
|
|
np[i % 24] = (0, 255, 0)
|
|
np.write()
|
|
time.sleep(0.01)
|
|
for i in range(24):
|
|
np[i % 24] = (0, 255, 255)
|
|
np.write()
|
|
time.sleep(0.01) |