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

Shift #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Shift #30

wants to merge 2 commits into from

Conversation

ymauray
Copy link

@ymauray ymauray commented Sep 30, 2018

This pull request adds a method to the Adafruit_DotStar class to push all pixels
one position towards the end, and then set the color of the first pixel.

Three prototypes are added to Adafruit_DotStar.h.
Two public methods :
shift(uint32_t c),
shift(uint8_t r, uint8_t g, uint8_t b),
One private :
shift(),

All three methods are implemented in Adafruit_DotStar.cpp

Known limitation : I haven't accounted for monochrome strips, as it's still a work in progress. Apart from that, none that I can think of.

I've provided a new example, strandshifttest. It's basically the strandtest, modified to use the new shift method.

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.

1 participant