I know this should be simple,

I know this should be simple, but I’m having a hard time figuring it out. Hopefully I can explain it clearly enough.

I have some code that rotates a single light around a circle of 64 WS2811s. I would like it to light up more than one light each time - for instance, five lights - and rotate those around the circle. I know I could put a for loop around the leds[rot] line, but I’m not sure how to handle the “reset” back to zero when the loop hits 63.

Hopefully, I’m pasting this example in correctly.

There are a couple of ways you can accomplish that. Do you still want to have the “trail” created by the FadeToBlack call?

Here’s some examples that might give you some ideas to try out.

@Sam_Guyer I’m not sure. I was using that because it simulated the effect I’m looking for. I’ll see if I still want or need it after I get the original idea working.

@marmil Thanks, Marc! I think I can figure it out from those examples.

I haven’t tested this, but heres how I think I would’ve done it: