Use of TFT_eSPI in Platformio #967
Unanswered
videobuff
asked this question in
Q&A - General
Replies: 2 comments
-
PlatformIO-supplied libraried are copied under "..pio\libdeps". |
Beta Was this translation helpful? Give feedback.
0 replies
-
PlatformIO uses a "normal" gcc compiler, which doesn't have some of the training wheels of the Arduino compiler. In particular, all functions must be defined before getting to "main" (or setup() and loop() in Arduino-speak). I'm fairly certain gettouch() is defined below loop() in your source file. If so, cut and paste the code for setup() and loop() code so those are the last two things in your source file, and it should compile fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have setup platformio and i am able to compile and upload to my ESP32.
However, if I choose the option to add the TFT_eSPI library from platformio to my project after I added it to platformio, i get errors.
I cannot find, where user-select.h is located ? And there is no library in the lib directory under my project. So i get these errors:
src/main.cpp:118:25: error: 'class TFT_eSPI' has no member named 'getTouch'
If I add the whole TFT_eSPI library to my project, it works.
Anyone has a soluton for this ?
Erik
Beta Was this translation helpful? Give feedback.
All reactions