I'm trying to store a sequence of RGB values in a multidimensional array:
void loop()
{
short colors[][3] = {{2,2,2},{4,4,4},{4,4,4}};
for(int i=0;i<10;i++)
{
Serial.write("Debug 1");
Serial.write("\n");
setColor(colors[i][0],colors[i][1],colors[i][2]);
delay(500);
}
}
But If my array goes above a certain size, the Arduino UNO does random things and doesn't react anymore (doesn't print Debug 1 anymore, but instead some random characters).
Has anybody experience in doing that stuff?