Hello All,
I am attempting to store an array of strings for use in generating a GUI. Ive tried various methods of generating tables of strings that are usable in LCD displays, serial monitoring, and comparisons, with no luck.
Currently I am attempting to simply store an array of strings in PROGMEM, and I believe I have following the example given on the site and other forum posts nearly verbatim, and I've no idea why it is still producing an error. Bellow is what I have for pertinent code, which is all before my setup():
#include <avr/pgmspace.h> //For putting stuff in program memory
const char string00[] PROGMEM = "A 1: 2: ";
const char string10[] PROGMEM = " 1: Status ";
const char string20[] PROGMEM = " 1: Actuals ";
const char *stry0[] PROGMEM = {string00, string10, string20}; //x, then y
And the error I receive is:
exit status 1
variable 'stry0' must be const in order to be put into read-only section by means of 'attribute((progmem))'
Any assistance would be greatly appreciated. Thank you!