kitesurfer1404 / WS2812FX

WS2812 FX Library for Arduino and ESP8266
MIT License
1.6k stars 347 forks source link

How to reverse the led order? #329

Closed biccius closed 1 year ago

biccius commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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.