LedControl icon indicating copy to clipboard operation
LedControl copied to clipboard

fatal error: avr/pgmspace.h: No such file or directory 30 | #include <avr/pgmspace.h>

Open AlpoReyz opened this issue 1 year ago • 1 comments

Why

AlpoReyz avatar Oct 15 '24 19:10 AlpoReyz

Try this one:

Open the LedControl.h file. If you don't know the location of the file. In your code, Mouse over the #include "LedControl.h", and a tooltip will show the location of the file.

replace : include <avr/pgmspace.h>

with

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

Got this solution from here

haroldcris avatar Dec 04 '24 01:12 haroldcris