PlatformIO no member named 'getTouch' #2881
Replies: 3 comments 1 reply
-
-D TFT_TOUCH_CS=21 Should read: -D TOUCH_CS=21 |
Beta Was this translation helpful? Give feedback.
-
Thank you very much Bodmer for the quick answer, the error, my stupid mistake, is now fixed. The display shows what it is supposed to do. chapeau! But now other error messages appear Another question concerns the 'redfined' warnings for the build_flags set in the platformio.ini: Thank you for this library and the time you spent with user support |
Beta Was this translation helpful? Give feedback.
-
Bodmer I use the example
What surprises me is that #include <FS.h> is not noted and I cannot find and include such a file. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using PlatfornIO and I get the error 'class TFT_ESPI' has no member named 'getTouch'. In an answer posted by @Bodmer in #117 (comment)_ Bodmer says "If you are using PlatformIO then see the note in the Tools folder of the library" . Unfortunately, there is no corresponding information to be found in the tools folder. Can anybody help me further? My platformio.ini file looks like this
build_flags =
-D USER_SETUP_LOADED
-D ILI9341_2_DRIVER
-D TFT_MISO=19
-D TFT_MOSI=23
-D TFT_SCLK=18
-D TFT_CS=15
-D TFT_DC=2
-D TFT_RST=4
-D TFT_TOUCH_CS=21
-D LOAD_GLCD=1
-D LOAD_FONT2
-D LOAD_FONT4
-D LOAD_FONT6
-D LOAD_FONT7
-D LOAD_FONT8
-D LOAD_GFXFF
-D SMOOTH_FONT
-D SPI_FREQUENCY=27000000
and in the User_Setup.h I have defined
#define TOUCH_CS 21 // Chip select pin (T_CS) of touch screen
With the ILI9341_2 driver the display works perfectly, but
I'm doing something wrong or have overlooked something.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions