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:
tneish 2023-12-27 22:40:48 +01:00 committed by GitHub
parent 43aa654b4d
commit cba51fb34b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)