I am coding for an Arduino Nano. The program is much longer, but I have isolated this bit of code for initializing a 2-dimensional String Array for a menuing system, which is consistently giving me the following error:
Arduino: 1.8.13 (Linux), Board: "Arduino Nano, ATmega328P (Old Bootloader)"
sketch_apr05b:17:15: error: too many initializers for 'const String [3][15]'
};
^
exit status 1
too many initializers for 'const String [3][15]'
const String Menu[3][15] PROGMEM =
{{"Set Clocks", "", ""},
{"", "Clk0", ""},
{"", "Clk1", ""},
{"", "Clk2", ""},
{"", "Save", ""},
{"Set Sweep", "", ""},
{"", "Start freq", ""},
{"", "Stop freq", ""},
{"", "Step size", ""},
{"", "Sweep", ""},
{"", "", "Single"},
{"", "", "Continuous"},
{"", "Time (ms)", ""},
{"", "Save", ""},
{"Reset", "", ""},
};
void setup() {
}
void loop() {
}
What am I doing wrong in initializing this array?