Hi, does anyone have any examples of how to implement multiple palettes?
I have modified the noise plus palette example so I can apply it to strips individually using
void mapNoiseToLEDsUsingPalette(int start , int range)
is it possible to also specify which palette to use?
for example if they were defined as currentpalette1,currentpalette2 etc
Thanks, Yea thats what i started with.
i modified it to use 1d noise, then (with some inspiration form marks multiple pattern example) modified it so i could assign different patterns to each strip.
I am now struggling with finding a way of assigning different palettes to each pattern.
this is one way to multitask the different sections.
I’ve done it with the same setup, 1 array-many strips no problem… but i ended up moving to many array-many strips.
my first hack code is here, which may give you some insight on how i made it work for FastLED
For one array-manystrips i had something like this instead
class TreePatterns
{
public:
//Common variables for each string. Let us use the same effect code for each string even though they are different pixels, colors, lengths, etcetc.
int Row;
int LedIndex; //first pixel
int LedEndIndex; //last pixel
int TotalSteps; // number of leds
CRGBPallette Pallette1;
Thats done it! the code above had the answer i was looking for .
Changed
void mapNoiseToLEDsUsingPalette(int start , int range)
to
void mapNoiseToLEDsUsingPalette(CRGBPalette16 palette , int start , int range)
Reading all that has however got me wondering if i could organise it all better.