-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At DateStrings.cpp #5
Comments
Hi, please note that I’m not the author of any of the code in the libraries repo. The libraries may be well out of date and you should obtain the library from the original source. regards, John
|
Hello, |
It's probably this https://github.com/michaelmargolis/arduino_time Cheers, John
|
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.
The text was updated successfully, but these errors were encountered: