Hey,
I am trying to change the color of my 8-led strip to values from array. However, I think I am not giving the strip.Color correct kind of input as it gives me an error "'array' was not declared in this scope". Could someone help me a bit with this part of the code? Thx a lot beforehand!!!
int array[2][8][3] = {
{{124, 109, 39},{124, 109, 39},{124, 109, 39},{124, 109, 39},{124, 109, 39},{124, 109, 39},{124, 109, 39},{124, 109, 39}},
{{45, 83, 199}, {45, 83, 199}, {45, 83, 199}, {45, 83, 199}, {45, 83, 199}, {45, 83, 199}, {45, 83, 199}, {45, 83, 199}}
};
void fromArray(uint8_t wait){
for(int i=0; i<2; i++){
for (int j=0; j<strip.numPixels(); j++){
strip.setPixelColor(j, strip.Color(array[i][j]));
}
strip.show();
delay(wait)
}
}