Description
Hi johnmccombs,
I am pleased that your coding is helping, and I'm using it for my project, I am using your Time library for my Arduino POV clock but there's a problem I'm facing in the DataStrings.cpp, as I am still learning in Arduino and I'd like to know what I've done wrong, and if there's any suggestion to solve it. And here's the compilation error I'm getting, i pasted here part of it, but it continues the same pattern of error:
In file included from /Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:10:0:
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:18:18: error: variable 'monthStr1' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char monthStr1[] PROGMEM = "January";
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:19:18: error: variable 'monthStr2' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char monthStr2[] PROGMEM = "February";
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:36:26: error: variable 'monthShortNames_P' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char monthShortNames_P[] PROGMEM = {"ErrJanFebMarAprMayJunJulAugSepOctNovDec"};
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:38:16: error: variable 'dayStr0' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayStr0[] PROGMEM = "Err";
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:39:16: error: variable 'dayStr1' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayStr1[] PROGMEM = "Sunday";
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:40:16: error: variable 'dayStr2' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayStr2[] PROGMEM = "Monday";
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:45:16: error: variable 'dayStr7' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayStr7[] PROGMEM = "Saturday";
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:47:20: error: variable 'dayNames_P' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PGM_P dayNames_P[] PROGMEM ={dayStr0,dayStr1,dayStr2,dayStr3,dayStr4,dayStr5,dayStr6,dayStr7};
^
/Users/S_Pineapple/Documents/Arduino/libraries/Time/DateStrings.cpp:48:24: error: variable 'dayShortNames_P' must be const in order to be put into read-only section by means of 'attribute((progmem))'
char dayShortNames_P[] PROGMEM = "ErrSunMonTueWedThrFriSat";
^
exit status 1
Error compiling.