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.17k stars 209 forks source link

Cannot find correct configs for SAME51G19A #421

Closed walnut-engineering closed 2 years ago

walnut-engineering commented 2 years ago

Describe the bug

Test code for the display work fine after altering DC and CS pinout. Nothing appear on display using sample code ex01_ard_basic. Perhaps something to do with the device platform not being detected automatically? In order to get the example ex01_ard_basic to compile I needed to manually #define AVR, perhaps this is the root of my issue..

Device hardware

Checklist to try first

Most display/touch issues can be identified by working through the steps in the Configuring GUIslice guide.

Please confirm whether:

Expected behavior

I expect to see the black box on grey background as shown on https://github.com/ImpulseAdventure/GUIslice/wiki/Configure-GUIslice-for-ARM-Cortex, Step 5

Initialization messages

Please copy any startup messages / errors reported to the serial monitor window here. You can enable all error messages by setting DEBUG_ERR 2 in the GUIslice config file.

GUIslice version [0.17.0]: Init display handler [ADA_ILI9341(SPI-HW)] OK No touch handler enabled

Additional info

I needed to add '#define AVR' in order to compile..

'C:\Users\Samson\Documents\Arduino\libraries\arduino_5100\src\GUIslice.c:62:14: fatal error: pgmspace.h: No such file or directory 62 | #include | ^~~~ compilation terminated. exit status 1 Error compiling for board CANBed M4 (SAME51G19A).'

walnut-engineering commented 2 years ago

Welp, looks like I found the answer.

define GSLC_USE_PROGMEM 0 and removing the AVR define I made allows the example code to be displayed!