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

How to reverse the led order? #329

Closed
biccius opened this issue Jan 21, 2023 · 2 comments
Closed

How to reverse the led order? #329

biccius opened this issue Jan 21, 2023 · 2 comments

Comments

@biccius
Copy link

biccius commented Jan 21, 2023

Hello everyone.
This library is great! Its simplicity and its many presets save a lot of time and everything works great.
My question is simple: Is there any way to easily reverse the order of the LEDs?

Thank you

@moose4lord
Copy link
Collaborator

You can add the REVERSE option at the end of the segSegment() statement.

ws2812fx.setSegment(0, 0, 9, FX_MODE_FADE, colors, 2000, REVERSE);

This option, and others, is covered in the User Guide.

@biccius
Copy link
Author

biccius commented Jan 23, 2023

Thanks, with some adaptations in my code it worked.
I thought there was a method at init that would do that but setSegment worked fine.

This issue can be closed.

@biccius biccius closed this as completed Jan 23, 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

No branches or pull requests

2 participants