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 …