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

Rotate left and right #10

Merged
merged 3 commits into from Feb 8, 2021
Merged

Conversation

The-Spirit
Copy link
Contributor

Rotate the pixels to left or right with x steps (default 1).
Making A loop with the pixels that are turned on.

If you want to scroll your pixels x pixels to te left or right
ws2812b.py Outdated
@@ -66,7 +66,20 @@ def set_pixel(self, pixel_num, red, green, blue):
green = round(green * (self.brightness() / 255))

self.pixels[pixel_num] = blue | red << 8 | green << 16


# rotate x pixels to te left
Copy link

Choose a reason for hiding this comment

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

typo: 'te'

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated 👍

@benevpi benevpi merged commit 8bd95c7 into benevpi:main Feb 8, 2021
@benevpi
Copy link
Owner

benevpi commented Feb 8, 2021

Tested and works. Looks Ace. Thanks for the pull request.

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.

None yet

3 participants