20 lines
297 B
Python
20 lines
297 B
Python
import matrixclock
|
|
|
|
import machine,neopixel
|
|
|
|
import font
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
np=neopixel.NeoPixel(machine.Pin(14),16)
|
|
|
|
np[0]=(25,0,0)
|
|
|
|
np[2]=(25,25,0)
|
|
|
|
np[4]=(0,25,0)
|
|
|
|
np[6]=(0,25,25)
|
|
|
|
np[8]=(0,0,25)
|
|
|
|
np[10]=(25,0,25)
|
|
|
|
np[12]=(25,25,25)
|
|
|
|
np.write()
|
|
|
|
|
|
|
|
d=matrixclock.display(14)
|
|
|
|
#d.clear()
|
|
|
|
|