I have a pretty large multi dimensional array for a sketch (I haven't finished filling in all of the values):
const short letterStrokes[11][5][2] = {
{ //I ###############################################################
{sketchW, 0},
{-sketchW_2, 0},
{0, sketchH},
{-sketchW_2, 0},
{sketchW, 0}
},
{ //W ###############################################################
{sketchW_3, -sketchH},
{sketchW_6, sketchH_3},
{-sketchW_6, -sketchH_3},
{sketchW_3, sketchH},
{-1, -1}
},
{ //A ###############################################################
{sketchW_3, sketchH_2},
{sketchW_3, 0},
{-sketchW_3, 0},
{sketchW_6, sketchH_2},
{(sketchW_6 + sketchW_3), -sketchH}
},
{ //N ###############################################################
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0}
},
{ //T ###############################################################
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0}
},
{ //L ###############################################################
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0}
},
{ //O ###############################################################
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0}
},
{ //F ###############################################################
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0}
},
{ //H ###############################################################
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0}
},
{ //I ###############################################################
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0}
},
{ //S ###############################################################
{0, 0},
{0, 0},
{0, 0},
{0, 0},
{0, 0}
}
};
It basically is a set of stroke lengths for a set of letters that are drawn with some motors. My question is: I'd like to have a config function that runs at setup that finds the maximum stroke width and height (sketchW and sketchH), then have all the stroke lengths set in the array. I'm wondering if making this array NOT a const (but obviously still initializing its size) so that I can set the values in a config function has any draw backs on memory or performance of the arduino? In general are const variables more stable or anything?