Hi guys, I would like to edit this example: Fire2012WithPalette.

Hi guys, I would like to edit this example: Fire2012WithPalette.
I bought 4 led strips, connected in serial, I need to switch on one strips, one by one, in consequence.
What part of codes I need to edit for do this jobs?
I already tried to edit the for Indices, i and j, for start x pixels after, but doesn’t work.

could you sketch out what you try to achieve? I’ve modified a sketch for 2 individual strips. Maybe that helps.
http://pastebin.com/SgB0QbU2

Thx.
I used a single big led strip, i have only one DATA_PIN = 6 .
In that function:
FastLED.addLeds<NEOPIXEL, DATA_PIN>(Z1, 0, Z1_NUM_LEDS);
the “0” is it the offset?

When i call:
FastLED.addLeds<NEOPIXEL, DATA_PIN>(Z1, 44, Z1_NUM_LEDS);
the leds start from position 44?

The function is:
FastLED.addLeds<STRIP, CLK_PIN, DATA_PIN, RGB_ORDER>(ARRAY, OFFSET, LED_COUNT);

examples:
FastLED.addLeds<APA102, 7, 9, RGB>(leds, 43); //<—Strip1 - APA102 - 43 LEDs
FastLED.addLeds<APA102, 11, 13, RGB>(leds, 43, 12); //<—Strip2 - APA102 - 12 LEDs
FastLED.addLeds<WS2812, 5, GRB>(leds, 55, 16); //<—Strip3 - WS2812 - 16 LEDs

Your strip will start from position 44

I tried to edit the code for my case, but not work well…
What i was wrong?
http://pastebin.com/X5UteRfs

Ah, I overlooked that you have one strip and want to devide it in zones.
(The example was to use 2 strips on 2 individual data pins.)
e.g. you have one long strip and want to divide it in 2 arrays of 44 LEDs each:
#define NUM_LEDS 88
FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);
CRGB leds[NUM_LEDS];

uint8_t Strip_1[45]; // define number of elements without specifically typing them all out // you need to know how many are active, always one more !!
for(int x=0; x<=43; x=x+1) { Strip_1[x]=x; } // this fills the array with range 0-43 (= 44 LEDs)

uint8_t Strip_2[45];
for(int x=44; x<=87; x=x+1) { Strip_2[x]=x; } // this fills the array with range 44-87

then you call the leds like this:
leds[Strip_1] = CRGB::Cyan;
leds[Strip_2] = CRGB::Red;
FastLED.show();

Ok i understand your codes… but how can i use it with Fire2012WithPalette() ?
which parameters?

because your example have “Fire2012(byte *heat, CRGB *leds, int number_leds)” , and the normal example have a different parameters.
Thank :slight_smile: .

c’mon do you think somebody writes you the code?
You declared Strip_1 and Strip_2
could it be something like Z1 and Z2 ???

K i have tried alone, but i don’t understand “leds[Strip_1]” in fire call : http://pastebin.com/ZZ9mi7Ja