progmem error for LED array code

Posted by Stanley on Wed 11 Mar 2020 06:51 PM — 2 posts, 13,565 views.

#0
Hello,

I am trying to use the LED code:

http://www.gammon.com.au/forum/?id=11516

Particularly for the 8x8 LED array. I have followed the instructions. but when it comes to including the cp437 font I get this error:

variable 'cp437_font' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

Per the website I have the code written like this (the ..... is the rest of the callouts):

byte cp437_font [256] [8] PROGMEM = {
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }, // 0x00
.............
}; // end of cp437_font

I am not sure how to proceed, This is my first LED attempt and all the other methods I have seen/tried have failed. The LED lights up sporadically. I have also tried a different driver and LED and no bueno.

I would appreciate any help. Also, I hope I am posting in the proper forum!

-Stan
USA Global Moderator #1
Quote:
Also, I hope I am posting in the proper forum!

You aren't
Template:Arduino
Please post Arduino-related questions to the Arduino Forum or to StackExchange: Arduino. This saves splitting questions and answers between this forum and the Arduino ones.