How do I pass a buffer/array, correctly, into the leds array?  From I2C,

How do I pass a buffer/array, correctly, into the leds array? From I2C, I’m receiving 192 bytes into a recvBuffer[192] array. I need to pass that to two leds arrays, leds1 and leds2, both of them are 32 pixels long:

#define NUM_LEDS 32
CRGB leds1[NUM_LEDS];
CRGB leds2[NUM_LEDS];

And from I2C, I have:
while(Wire.available() && (pos < BUFFER_SIZE)) {
recvBuff[pos++] = Wire.read(); // receive byte
}

BUFFER_SIZE here is set to 192 because that’s how many bytes are being sent by the master. 32 pixels * 3 (RGB values) * 2 (strings)

I need to get that recvBuff[] array into leds1 and leds2 …

Maybe try using two "memcpy()"s, like:

memcpy( leds1, recvBuff, BUFFER_SIZE/2 );
memcpy( leds2, recvBuff+(BUFFER_SIZE/2), BUFFER_SIZE/2 );

assuming recvBuff contains exactly what the new leds1 & leds2 arrays should be.

Yup, that worked (except I can’t use BUFFER_SIZE since that’s 192 bytes and each string only needs 96. Once adjusted, it works as expected. Thanks!