Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ColorCycle accepts start color #115

Merged
merged 4 commits into from
Dec 27, 2023
Merged

Conversation

tneish
Copy link
Contributor

@tneish tneish commented Dec 16, 2023

ColorCycle accepts start color. Enables "candy-cane"-like animations; e.g:
AnimationGroup with
[ColorCycle(strips[0], speed=5, colors=[color.WHITE, color.RED, color.GREEN, color.BLACK], start_color=0),
ColorCycle(strips[1], speed=5, colors=[color.WHITE, color.RED, color.GREEN, color.BLACK], start_color=1),
ColorCycle(strips[2], speed=5, colors=[color.WHITE, color.RED, color.GREEN, color.BLACK], start_color=2),
ColorCycle(strips[3], speed=5, colors=[color.WHITE, color.RED, color.GREEN, color.BLACK], start_color=3)
]

@tneish
Copy link
Contributor Author

tneish commented Dec 16, 2023

I'm not sure why the check is failing.
Let me know and I can modify!
Thanks

Copy link
Contributor

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. I myself have wanted something similar.

adafruit_led_animation/animation/colorcycle.py Outdated Show resolved Hide resolved
Adding the new arg to the end will make any calls upward.compatible

Co-authored-by: Dan Halbert <halbert@halwitz.org>
@dhalbert dhalbert merged commit 35d8c01 into adafruit:main Dec 27, 2023
1 check passed
@tneish tneish deleted the horiz_animation branch December 27, 2023 21:47
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants