Skip to content

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