godstale / retrowatch

Retro watch is open source smart watch project using Arduino and Android.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

variable 'bitmap_array' must be const in order to be put into read-only section by means of '__attribute__((progmem))' is the issue while compiling. Please fix it or give a solution for this. Regards.

AADITYA5584 opened this issue · comments

You have to specify that the pointer is const. try to use, for example
"PROGMEM const char* const weekString[]" instead of
" PROGMEM const char* weekString[]"

PROGMEM const char* const weekString[] = {"", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"};
PROGMEM const char* const ampmString[] = {"AM", "PM"};
Try using using this