ImpulseAdventure / GUIslice

GUIslice drag & drop embedded GUI in C for touchscreen TFT on Arduino, Raspberry Pi, ARM, ESP8266 / ESP32 / M5stack using Adafruit-GFX / TFT_eSPI / UTFT / SDL
https://www.impulseadventure.com/elec/guislice-gui.html
MIT License
1.2k stars 211 forks source link

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

Open PrasanthElavarthi opened 2 years ago

PrasanthElavarthi commented 2 years ago

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

Pconti31 commented 2 years ago

@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--