leds[row3[3]]
is not what you think it is. That is selecting one single LED depending on what is in element 4 (index 3) of the 3-element array row3
. Since there is no index 3 in a 3 element array (only indexes 0, 1 and 2) the value it returns to use as an index to the leds[]
array is unknown.
fill_solid
is designed to fill a single uninterrupted string of LEDs starting at LED n
and progressing for a number of LEDs after that. To set random LEDs all to the same colour you should simply loop through your list of target LEDs and set the colours individually. Something like:
for (int i = 0; i < sizerow3; i++) {
leds[row3[i]] = CRGB::Red;
}
LEDS.show();