LED Display library error: "variable 'Font5x7' must be const..."

i want to use the LED Display library to control the HCMS-2913 AlphaNumeric Display, but when i try to compile a sketch containing #include <font5x7.h> and #include <LedDisplay.h> i get the following error:

"In file included from C:\Users\t_pernh\Documents\Arduino\sketch_apr15a\sketch_apr15a.ino:1:0:
C:\Users\t_pernh\Documents\Arduino\libraries\LedDisplay/font5x7.h:20:56: error: variable ‘Font5x7’ must be const in order to be put into read-only section by means of ‘attribute((progmem))’
static unsigned char attribute ((progmem)) Font5x7[] = {

exit status 1
Error compiling for board Arduino/Genuino Uno."

the library comes from here:


to me it sounds like i should edit the font5x7.h file, but not sure exactly what to change.

Which version IDE are you using? It makes a difference.

Without seeing the rest of the source code, change

static unsigned char __attribute__ ((progmem)) Font5x7[]


static const unsigned char PROGMEM Font5x7[]

this may work.

Make it this.

const uint8_t Font5x7 PROGMEM = {…}

am running arduino 1.6.8. tried both suggestions (marco_c and HayardsMind) and both work. thank you!