[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  Forum software
. -> [Folder]  Installation
. . -> [Subject]  progmem error for LED array code

progmem error for LED array code

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Stanley   (1 post)  [Biography] bio
Date Wed 11 Mar 2020 06:51 PM (UTC)
Message
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
[Go to top] top

Posted by Fiendish   USA  (2,513 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Wed 11 Mar 2020 07:00 PM (UTC)

Amended on Wed 11 Mar 2020 07:01 PM (UTC) by Fiendish

Message
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.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


8,479 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]