Hi I'm after some help passing values to a function.

Hi I’m after some help passing values to a function. I have arranged my Leds into strips as below and trying to modify @Mark_Kriegsman s colour palettes example to allow me to fill each strip independently using the same FillLEDsFromPaletteColors function. Just seem to be getting myself in knots trying to figure it out.
Full (unfinished) code is here Kitchen_Noise_Palette_blend_fastLED fft by anthony.ollerton

#define led1 80
#define led2 80
#define led3 96
#define led4 47
#define led5 54
#define led6 25
#define led7 22
#define led8 22

CRGB strip1 [led1];
CRGB strip2 [led2];
CRGB strip3 [led3];
CRGB strip4 [led4];
CRGB strip5 [led5];
CRGB strip6 [led6];
CRGB strip7 [led7];
CRGB strip8 [led8];

beginning to think i will just have to make a colours from palette statement for each strip.

Play around with fill_palette? Notes and code are in Arduino/Libraries/FastLED/colorutils.h

Let’s you do this:

fill_palette(strip1, led1, start, inc, palette, brightness, BLEND);

fill_palette(strip2, led2, start, inc, palette, brightness, BLEND);

fill_palette(strip3, led3, start, inc, palette, brightness, BLEND);

Let me know if this helps (or if we need to try something else)…

All this time and I never realised there was stuff I’d understand in there.
Thanks for the pointer!
I gave the wiki a good reading through when I first picked Fast LED up, any other bits I have been trying to pick up on here.

I think the fact that we put lots of comments in there is under-advertised.
(Which we’re changing.)

Lol, i was about to write a post about my own issue with my different leds strips that unexpectedly came with diffrent chips (WS2811 and WS2812B) and different color_order (the WS2811 is RGB and the WS2812B is GRB). I was about to ask to Mark if it is possible to handle the 2 different chips with a single arduino board. You just answered my question with your post :wink: Thank you so much! Why did you set the refresh rate to 33fps only ? I had a quick look at your code. you’re using a FFT library. Is it a software solution that can replace an MSGEQ7 to feed the EQ data ? I had one on the way… Sent to my home country (thank so much aliexpress) while i’m abroad… I have a 5 channels SSR controlling 4 240VAC light strings + 1 analog 5VDC LED string + the 2x50 WS2811 LED string + the 144 LEDs WS2812B for my topper star. I’ll be happy if i could do assign a 6 bands EQ to my little guys :slight_smile: I also received my HC-06 bluetooth today (grrr thought i ordered a HC-05). i’m just done doing some tests from my smartphone. I had some troubles getting windows to pair with the HC-06 yesturday. Just got it working this morning. i’m now having a quick look a the vixen 3.1 tutorial (will definately run out of time for that this year).

As far as the code goes it is just what I have pulled together from Mark and @Kev_Zhu (thanks btw!) had no idea what frame rate it was running at and wouldn’t know where to look at the moment.
The FFT solution can be found here https://github.com/KevZhuArt/FFT-FastLED
I’m just muddling my way through trying to make some nice patterns and picking up some coding skills along the way.