Skip to content

Add SparklePulse animation #13

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

Merged
merged 3 commits into from
Mar 30, 2020
Merged

Add SparklePulse animation #13

merged 3 commits into from
Mar 30, 2020

Conversation

dmolavi
Copy link

@dmolavi dmolavi commented Jan 31, 2020

This new animation is a combo of the Sparkle and Pulse. The effect makes the Pulse work on a single pixel at a time, vs the entire set of pixels.

@ladyada ladyada requested a review from a team February 1, 2020 03:22
@ladyada
Copy link
Member

ladyada commented Feb 1, 2020

@rhooper - you can also review if you like!

@rhooper
Copy link

rhooper commented Feb 1, 2020

@dmolavi I like the idea of making sparkle able to use pulse animations. Thank you for your contribution! There seems to be a lot of duplication and/or unused code from Sparkle and Pulse that can be cleaned up. I will look closer later today, and suggest the changes needed.

@dmolavi
Copy link
Author

dmolavi commented Feb 1, 2020

You're more than welcome. This was quick and dirty to get it up and running. I'm more than open to modularizing some of the common code between the animations or whatever other changes should be made.

@rhooper
Copy link

rhooper commented Feb 1, 2020

I should mention an outstanding PR with a whole bunch of changes and improvements that could make the cleanup suggested easier.

I just pushed a refactor to that PR that moved the pulse generator to helper.py
https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation/pull/10/files#diff-4b2c1e050cf3860b0985abfb719ca2b9R212
https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation/pull/10/files#diff-64b1eba82bd2cf60853e11d3c2bbb9b1R386

@dmolavi
Copy link
Author

dmolavi commented Mar 7, 2020

@rhooper - I don't want to step on toes, so I haven't pushed this PR any further, esp if you have a refactor and new stuff coming in with your PR. I'm wondering if maybe merging the two PRs into one might be the best solution here?

@kattni
Copy link
Contributor

kattni commented Mar 30, 2020

There's no ETA on the refactor. I will merge this as is and we will do the necessary/requested cleanup at a later date.

@kattni kattni merged commit ab7effe into adafruit:master Mar 30, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Apr 3, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_CLUE to 2.2.1 from 2.2.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_CLUE#26 from FoamyGuy/ble_patchwork

Updating https://github.com/adafruit/Adafruit_CircuitPython_DPS310 to 1.1.1 from 1.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_DPS310#3 from adafruit/update-docs-link

Updating https://github.com/adafruit/Adafruit_CircuitPython_HTS221 to 1.1.1 from 1.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_HTS221#3 from adafruit/update-docs-link

Updating https://github.com/adafruit/Adafruit_CircuitPython_LIS2MDL to 2.1.1 from 2.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_LIS2MDL#8 from adafruit/update-docs-link

Updating https://github.com/adafruit/Adafruit_CircuitPython_LIS3MDL to 1.1.1 from 1.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_LIS3MDL#8 from adafruit/update-docs-link

Updating https://github.com/adafruit/Adafruit_CircuitPython_LPS2X to 1.1.1 from 1.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_LPS2X#3 from adafruit/update-docs-link

Updating https://github.com/adafruit/Adafruit_CircuitPython_LED_Animation to 1.1.1 from 1.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_LED_Animation#13 from dmolavi/master

Updating https://github.com/adafruit/Adafruit_CircuitPython_Logging to 1.2.1 from 1.2.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_Logging#11 from adafruit/update-docs-link
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.

4 participants