diff --git a/1 - Code/hl3.py b/1 - Code/hl3.py index e9ce3b4dfcdbc863516cefa68e3ff15c40069bc8..90aeee437138fd078bd823ab40995a064de53dd1 100644 --- a/1 - Code/hl3.py +++ b/1 - Code/hl3.py @@ -1,5 +1,5 @@ from machine import Pin -from neopixel import NeoPixel +from neopixel import NeoPixel class color: BLACK = (0, 0, 0) @@ -10,10 +10,11 @@ class color: RED = (255, 0, 0) def init_neopixel(): - return NeoPixel(Pin(0, Pin.OUT), 64) + return NeoPixel(Pin(0, Pin.OUT), 64) class matrix: - def clear(self, color): + def clear(color): np = init_neopixel() - for i in range(0,64): + for i in range(64): np[i] = color + np.write() \ No newline at end of file diff --git a/1 - Code/main.py b/1 - Code/main.py index 1d2ef82e813e47e3d9d70d677335037ac6ffca55..c9e354a6ac58319e6bc6be91169fbb718b1a719b 100644 --- a/1 - Code/main.py +++ b/1 - Code/main.py @@ -1,5 +1,4 @@ from hl3 import color from hl3 import matrix -while True: - matrix.clear(color.RED) +matrix.clear(color.RED) \ No newline at end of file