Skip to content
Snippets Groups Projects
Commit c909dcd8 authored by michael.divia's avatar michael.divia
Browse files

Forgot Good Matrix on the card

parent 7edee74d
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,8 @@ def init_neopixel(): ...@@ -13,7 +13,8 @@ def init_neopixel():
return NeoPixel(Pin(0, Pin.OUT), 64) return NeoPixel(Pin(0, Pin.OUT), 64)
class matrix: class matrix:
def clear(self, color): def clear(color):
np = init_neopixel() np = init_neopixel()
for i in range(0,64): for i in range(64):
np[i] = color np[i] = color
np.write()
\ No newline at end of file
from hl3 import color from hl3 import color
from hl3 import matrix from hl3 import matrix
while True:
matrix.clear(color.RED) matrix.clear(color.RED)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment