This commit is contained in:
janeptrv 2020-11-06 20:37:20 -05:00
parent 326407887b
commit 9feeaddd79
1 changed files with 1 additions and 0 deletions

View File

@ -249,6 +249,7 @@ def defaultPattern(n, t):
class LightStrip:
def __init__(self, data_pin = board.D18, string_length = 300, brightness = 1, pixel_order = neopixel.GRB):
self.data_pin = data_pin
self.np = neopixel.NeoPixel(self.data_pin, string_length, brightness = brightness, auto_write=True, pixel_order = pixel_order)
self.pattern = defaultPattern