ESP32, TFT_eSPI, ILI9488, and FT6236 CTP Configuration Problem #452
Replies: 10 comments 13 replies
-
I thought I would add that following the error trail you come up with this: But adding |
Beta Was this translation helpful? Give feedback.
-
What I've found today is that if I remove the TFT_eSPI build flags then I can get the example code to compile. I've been playing with the build flags without any luck but maybe someone else can help out as everything says this should work and it must just be some linking issue somewhere that's preventing this to compile. My complete platformio.ini file is
I created a new workspace and instead of importing the example I created a new one and then copied and pasted the code into main.cpp. I also added |
Beta Was this translation helpful? Give feedback.
-
@GeorgeIoak the original problem is with the compiler not finding the definition for GFXfont. Not sure why but when you use tft_eSPI library it's complete in itself and has its own define for GFXfont. You do not need any Adafruit libraries. No Adafruit_gfx, Adafruit_BusIO, or Adafruit_ILI9341. I'm not sure about Adafruit_FT6206 which you might still need Adafruit_BusIO. |
Beta Was this translation helpful? Give feedback.
-
So I've made it past the compile issues (assuming nothing is wrong with the way it's compiling). I'm trying to run the I did have the screen and touch working properly using just TFT_eSPI so something I've done is wrong when I added GUIslice into the mix. |
Beta Was this translation helpful? Give feedback.
-
@GeorgeIoak I don't use PlatformIO so I would need to download it. Before investigating PlatformIO further have you tried using Arduino's IDE with GUIslice. Using Arduino IDE would pinpoint if its config of GUIslice or PlatformIO issue. Config of GUIslice maybe I can help with; PlatformIO not so much... You will need to wait on Calvin @ImpulseAdventure for that. I should also note that Github doesn't send email notices for Discussions so posting in Issues section sends email so it will flag Calvin and at least he will know you have a problem. |
Beta Was this translation helpful? Give feedback.
-
@GeorgeIoak Well, I confess you are the edge of my knowledge here but I don't think User_Setup_Select.h is used by GUIslice. |
Beta Was this translation helpful? Give feedback.
-
@GeorgeIoak I quick follow up. A scan of TFT_eSPI shows that its main file brings in only User_Setup_Select.h which has the default of including User_Setup.h which I assume you commented out. |
Beta Was this translation helpful? Give feedback.
-
@GeorgeIoak Yes, I think you should open a new issue, start with just the Arduino IDE. I just tested with my esp32 and adafruit display ili9431 using TFTe_SPI, ArduinoIDE 1.8.13 and just editing User_Setup.h and it worked fine so I'm at a lost. Also, I was wrong about my Builder, it outputs #include <TFTe_SPI.h> not any of the User_Setups .h files. |
Beta Was this translation helpful? Give feedback.
-
Hey @GeorgeIoak -- I just tried modifying the GUIslice default platformio.ini file to match the settings you posted in #452 (comment) I could get it to compile OK on my end (without the GFXfont issues) and without adding any GFX lib_deps. I attached a modified platformio.ini file. Please try copying it over the platformio.ini file in your GUIslice root folder. Does that build any better for you? thanks |
Beta Was this translation helpful? Give feedback.
-
FYI -- I have now posted an update to the Teensy config that should clean up the compilation error within that particular PIO environment (should not affect your build). As for building the project within PlatformIO, I haven't run the flow for a while so I can't recall the specific steps off-hand to demonstrate how one integrates the INI config (I will need to followup separately as I believe it may have involved setting LDF mode). But you are correct: one would not be importing the platformio.ini file verbatim from GUIslice. The platformio file within the repo is intended to test a number of configurations within the default GUIslice library itself. It would be great if these IDEs enabled a simpler means of having a library (such as GUIslice) support a wide range of devices / displays, but unfortunately some extra steps are often required. I am leaving on vacation tomorrow so unfortunately I don't know if I will get a chance to test and document the flow for you before I leave. In the meantime, I would recommend ensuring that your project works correctly within Arduino IDE (per the updates I've posted for you in issue #425 for example). After I return, I should be able to post the steps to get it to compile within PIO. Note that the majority of users and associated testing has been done in the Arduino IDE, though PIO has also been successfully used too. thx |
Beta Was this translation helpful? Give feedback.
-
So I have the above items all working in PlatformIO and I wanted to take the next step and use GUIslice.
I am having a very hard time just taking the ex46_ard_togglebtn.ino example and getting it to compile. I currently am getting error(s) like this:
In platformio.ini I have
as well as the build flags that worked with my original proejct.
in
.pio\libdeps\esp32dev\GUIslice\src\GUIslice_config.h
I have uncommented#include "../configs/esp-tftespi-default-ft6206.h"
I don't think I need the Adafruit ILI9341 but I've tried with and without.
I tried uncommenting
#define EXTRA_FONTS
with no difference.I've done plenty of searching but I can't seem to find much information for help on this, especially if you're using PlatforIO so I'm hoping someone has some idea what I'm doing wrong which I'm sure is a dumb mistake on my part.
Beta Was this translation helpful? Give feedback.
All reactions