Adding GUIslice to PlatformIO Throws a Compile Error #1697
Replies: 3 comments 2 replies
-
OK, just stumbled across that if I comment out So there must be a downside to doing this or since |
Beta Was this translation helpful? Give feedback.
-
OK, just stumbled across that if I comment out As a reminder all of the settings worked with a different project before I added GUIslice so the hardware and settings are known to work.
I see
and then in
But I'm not quite sure how you go about using custom I2C pins with GUIslice |
Beta Was this translation helpful? Give feedback.
-
Looks like you are missing a define: #define LOAD_GFXFF So in platformIO you need to add this to the ini file: -DLOAD_GFXFF=1 |
Beta Was this translation helpful? Give feedback.
-
I'm asking over at GUIslice as well as PlatformIO but I thought I'd circle back here as well just in case someone has come across this.
I had my code working well in PlatformIO using TFT_eSPI but I wanted to experiment with GUIslice.
What I found using one of the GUIslice examples is that it compiles if I add TFT_eSPI as a library dependency but if I add my build flags then the compile fails with this:
When I follow the trail to GUIslice_drv_tft_espi.cpp:394:31 VS Code tells me that GFXfont is undefined but it is defined in Adafruit-GFX-Library/gfxfont.h at master · adafruit/Adafruit-GFX-Library (github.com) which is included in Adafruit-GFX-Library/Adafruit_GFX.h at master · adafruit/Adafruit-GFX-Library (github.com)
My complete (including some experimenting) platformio.ini is:
So if you cut everything below
# Now TFT_eSPI Build Flags
you'll get a successful compile but if you add those build flags back in I got the odd error listed above.I know there isn't CUIslice support here but I thought I'd post in case someone has run across something similar and can help me debug this further.
Beta Was this translation helpful? Give feedback.
All reactions