ozhantr / DigitLedDisplay

MAX7219/MAX7221 Digital Tube 7-Segment LED Display Arduino Library
Other
32 stars 18 forks source link

avr/pgmspace.h: No such file or directory on ESP8266 #8

Closed dhessmann closed 4 years ago

dhessmann commented 5 years ago

Hi,

when using an esp8266 you get an "avr/pgmspace.h: No such file or directory". Could you replace

#include <avr\pgmspace.h>

with

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

like mentioned here: https://github.com/SodaqMoja/Sodaq_DS3231/issues/5?

Thanks.

ozhantr commented 4 years ago

Thx @dhessmann. I have fixed the path.