Fatal error: pgmspace.h: No such file or directory Help!

Hi all,

My library is currently using the Base64 library. There are several lines of code inside Base64 library:

#include "Base64.h"
#include <Arduino.h>
#if (defined(__AVR__))
#include <avr/pgmspace.h>
#else
#include <pgmspace.h>
#endif


If I use the board Arduino Uno WiFi Rev2 then, everything is fine. However, if I use the arduino board MKR wifi 1010 then it shows that

fatal error: pgmspace.h: No such file or directory

I commented out these two lines

#include <avr/pgmspace.h>

and

#include <pgmspace.h>

Everything will work again.

My question is, can I do something on my own library so that the users of my library don't have to do such kind of manually process?

Thanks a lot!

BRs,

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.