Are there any examples on how to code multiple effects in a single loop using some of the newer features on FastLED? I’ve been working on doing my own set of libraries to handle multiple effects (i.e. not using delay() but using counters so that things aren’t activated until a set time has been reached)… is there a new system that is being worked on where routines can be modularized and run on top of each other?
I’m looking for some specific info on how these functions and how they work: FastLED.delay, and EVERY_N_MILLISECONDS()
As i start coding my own routines, I want to use conventions that will allow multiple segments simultaneously. Is this practical with an Arduino? Thoughts?
This example may be of some use:
https://plus.google.com/112916219338292742137/posts/FjfHnDP5tPK
The EVERY_* macros should work just fine inside any function that’s called periodically.
That’s good stuff… I’m trying to find details on individual routines like: fadeToBlackBy( leds + startpixel, pixelcount, 30);
Is that last parameter a time value? If so, does that code use delay() or some other way to time itself that doesn’t slow down parallel functions?
fadeToBlackBy(…) Only operates when called. It is not a time based function. It works when called repeatedly in a program.
The last parameter of the function is the fade value, by which each LED defined in the first 2 arguments are reduced by.
If I remember correctly, it is expressed as a fraction of x/255. However, I may be wrong on that one. Not at a computer to check the library.
However, @Mark_Kriegsman should be able to answer that one 
Yep. Go to https://github.com/FastLED/FastLED/wiki/Pixel-reference and scroll down to “dimming and brightening colors”.
i am trying to come up with a framework that can be used to sequence different patterns in a predefined way to be played back in sync to some music (mostly bum bum bum music) i havent actually coded anything yet but it will require a teensy because it will hold multiple arrays in memory to be blended over each other. i am in the phase of exploring how to inject the data into the Teensy and right now I am trying to use the teensy as kind of “instrument” that i can play with MIDI being sent to it, using a MiDI sequencer. That way I could also play “live” on the LED strip with a keyboard. I can only do this in my spare time so progress is slow but I will post updates on the progress.