diff --git a/1 - Code/hl3.py b/1 - Code/hl3.py index 90aeee437138fd078bd823ab40995a064de53dd1..04d489b67e6524d16289200f29ca128aaca74b4d 100644 --- a/1 - Code/hl3.py +++ b/1 - Code/hl3.py @@ -1,6 +1,9 @@ from machine import Pin from neopixel import NeoPixel +np_led = 64 +gpio_neopixel = 0 + class color: BLACK = (0, 0, 0) BLUE = (0, 0, 255) @@ -10,11 +13,11 @@ class color: RED = (255, 0, 0) def init_neopixel(): - return NeoPixel(Pin(0, Pin.OUT), 64) + return NeoPixel(Pin(gpio_neopixel, Pin.OUT), np_led) class matrix: def clear(color): np = init_neopixel() - for i in range(64): + for i in range(np_led): np[i] = color np.write() \ No newline at end of file