I would like to define a multi-dimensional array via a macro with the Arduino language. I am trying to save sketch/RAM space.
I would like to do something like so:
#define MYARR {{8, 0}, {8, 1}, {8, 2}, {8, 3}, {8, 4}, {8, 5}, {8, 6}}
function_that_uses_array(MYARR);
but I just can't seem to get it to work, and get a multitude of errors. I have tried several different ways of defining the array in the macro, but I am admittedly not even sure this is possible to do.
Is this possible, and if so, how?