GUIslice icon indicating copy to clipboard operation
GUIslice copied to clipboard

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

Open PrasanthElavarthi opened this issue 2 years ago • 1 comments

I am trying to use the GUIslice with SAMD51 and when I compile the code, it results in this error

Documents\Arduino\libraries\GUIslice-master\src\GUIslice.c:62:26: fatal error: pgmspace.h: No such file or directory #include <pgmspace.h>

PrasanthElavarthi avatar Jul 22 '22 17:07 PrasanthElavarthi

@PrasanthElavarthi SAM MCUs do not support flash with special api's. They simply use flash as part of the main memory space so try setting inside your guislice/config/xxxx.h file by searching for GSLC_USE_PROGMEM and then changing to:

#define GSLC_USE_PROGMEM 0

Paul--

Pconti31 avatar Jul 22 '22 20:07 Pconti31