Skip to content
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

Using LedControl.h library: avr/pgmspace.h: No such file or directory #508

Closed
grplyler opened this issue Jul 13, 2017 · 3 comments
Closed
Labels
Type: For reference Common questions & problems

Comments

@grplyler
Copy link

Hi,

I am trying to use the Arduino LedControl library to drive a max7219 led matrix display
but when I compile, there is no avr/pgmspace.h

Many led control libraries use pgmspace.h. Is this available or possible on esp32?

I am using an Adafruit HUZZAH32 ESP32 Feather Board

Any advice or direction on this matter would be greatly appreciated.
Thanks!

Ryan

@bbx10
Copy link
Contributor

bbx10 commented Jul 13, 2017

Try #include <pgmspace.h>.

@grplyler
Copy link
Author

Yep, that worked. But had to change the code in the LedControl.h file in the library not the Arduino sketch.

Added this:

#if (defined(__AVR__))
#include <avr\pgmspace.h>
#else
#include <pgmspace.h>
#endif

Where #include <avr\pgmspace.h> was.

Found this solution on an issue that the ESP8266 had:
SodaqMoja/Sodaq_DS3231#5

@gregfox151
Copy link

Hi, I added to Adafruit_SH1106.cpp
#if (defined(AVR))
#include <avr\pgmspace.h>
#else
#include <pgmspace.h>
#endif
But still get the error:
fatal error: avr/pgmspace.h: No such file or directory

It was working a few weeks ago but not anymore.
Using an Wroom32 and a 128x96 OLED
Tried it with a Arduino mega same story.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: For reference Common questions & problems
Projects
None yet
Development

No branches or pull requests

4 participants