Hello, looking for information on where I should be researching for my answer.
If I have a LED strip of 100 LEDs and want the sketch to start at 1-10, then go to 11-20 as 1-10 starts over. Example: A sketch where lights fade from red to orange to yellow. 1-10 starts off at red, then 11-20 start off at red while 1-10 fade to orange. Basically, the sketch transitions down the strip in defined “chunks” (in this case, chunks of 10 LEDs). Looking in documentation on where I should be researching. Thanks for any help.
@Stefin_T Can you clarify if pixels 1-10 is a solid color (all the same color, but slowly transitioning), or if it’s a gradient (color changes from pixel 1 to 10)? I originally might have misunderstood.
If solid blocks of colors, these might give you some ideas to mess with. Code should be able to be modified to do the transitioning over time.
Marc, thanks for the reply. The “blocks” of color are a single color and transition from block to block. The code you posted might give me a good direction, I will tinker with it when I get back home.
@marmil , thanks for the code example…I really like defining the color block length.
What I am trying to figure out is… having a sketch, such as “FadingRainbow” and have the gradient transitions happen across a defined “bar length”. Instead of the gradient happening continously along the strip, I can define that I want the same gradient to happen in chunks of LEDs.
Thanks again, trying to find out where I should be looking in the documentation… I didn’t see anything yet.
If you’re using fill_rainbow there’s some info in this post that might give you some ideas about how to start the rainbow on a specific hue and transition at a specific rate or over a certain distance: https://plus.google.com/100542328320334100166/posts/Y5BdWFEvfo1
@marmil thanks Marc, I’ll spend some time looking that over. Looking at the video, it looks close to what I am trying to figure out… with one exception. Instead of multiple strips displaying at the same time, I’d like each strip to act sequential to each other. Thanks again, I appreciate it