Update adafruit_led_animation/animation/colorcycle.py
Adding the new arg to the end will make any calls upward.compatible Co-authored-by: Dan Halbert <halbert@halwitz.org>
This commit is contained in:
parent
43aa654b4d
commit
cba51fb34b
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ class ColorCycle(Animation):
|
|||
"""
|
||||
|
||||
# pylint: disable=too-many-arguments
|
||||
def __init__(self, pixel_object, speed, colors=RAINBOW, start_color=0, name=None):
|
||||
def __init__(self, pixel_object, speed, colors=RAINBOW, name=None, start_color=0):
|
||||
self.colors = colors
|
||||
self.start_color = start_color
|
||||
super().__init__(pixel_object, speed, colors[start_color], name=name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue