New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TFT_eSPI' has no member named 'getTouch' #169
Comments
If you define a pin for the touch chip select then it should be OK: https://github.com/Bodmer/TFT_eSPI/blob/master/User_Setup.h#L97 |
That was exactly it Thank you so much for getting back to me in time for me to get my project done this weekend :) |
what about for ESP32?? Can you tell me how to configure the pins for esp32 kit?? |
For the touch screen to work with ESP32 you must un-comment the line below in the “User_Setup.h” file. #define TOUCH_CS 21 // Chip select pin (T_CS) of touch screen |
I have this issue on custom hardware I've developed. I used GPIO 0 for CS and I'm getting this same error. |
Run the diagnostic sketch Read_User_Setup and check the compiler is picking up your settings by looking at the Serial Monitor output. Note that touch only works with SPI displays and XPT2046 touch controllers. In other cases an alternative touch library can be used. |
Touch Screen seems to work fine except for the Touch_Calibrate program quickly jumps through the entire program before I have a chance to tap the areas of the screen where the arrows appear. [code] MOSI = GPIO 23 Font GLCD loaded Display SPI frequency = 40.00 |
I see you have an ILI9488 display. Make sure you have not connected the MISO signal only to the touch controller, not the TFT SDO pin (see ILI9488 part of discussion here). Run the diagnostic sketch Test_Touch_Controller. This does not output to the TFT screen (it will reman blank) the the raw touch output will be sent to the serial Monitor Window. Touch the screen and see if the values change significantly. Z is a measure of the touch pressure on the screen. Post a smal segment of the output here. |
Oh geez, I didn't even catch that. I'm actually using an ST7796. I got my config files mixed up. Starting... [code] MOSI = GPIO 23 Font GLCD loaded Display SPI frequency = 40.00 |
Touch Calibration works now, so I suspect that error is coming from something in my code. |
OK,so all is good now. Hope your project goes well. |
Hello! Help me pls. If i have add #define TOUCH_CS 21 , i have Compilation error for ESP32 Dev Module board. What can i do ? Pls help! Thank you |
Run the diagnostic sketch Read_User_Setup and check the compiler is picking up your settings. |
On the read_user_setup I have add this code :
--https://github.com/Bodmer/TFT_eSPI/blob/master/examples/Test%20and%20diagnostics/Read_User_Setup/Read_User_Setup.ino
But dont work
Can not install on esp32
Отправлено из myMail для Android
четверг, 06 января 2022г., 16:42 +02:00 от Bodmer ***@***.***:
…Run the diagnostic sketch Read_User_Setup and check the compiler is picking up your settings.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you commented.Message ID: @github.com>
|
Compilation error for ESP32((( |
Have you successfully run the Basics>Blink example to flash an LED? |
I have write scatch for termocouple and screen shows temperature very well! But dont work skatch with touch(( |
So the sketch and display are running unless a touch pin is defined, then you get a compile error? Post the compile error. |
/Users/andrey/Documents/Arduino/libraries/TFT_eSPI-master/Extensions/Touch.cpp:22:34: error: 'spi' was not declared in this scope |
Are you using a parallel display? If so then the library does not support touch screens when a parallel display is used. |
Oh, maybe! So if parallel display how can i used touch, or better buy not parallel? |
You can use a touch library, the choice depends on the touch interface chip fitted. Some parallel displays, typically in UNO board form have a resistance only output, others have chips fitted. |
Ok! Thank you for answer! And maybe you can send me link for lib for parallel ILI9341 |
That is the display driver chip, not the touch driver chip. Post a link to the display sellers page. |
Hi, I'm also interested on this topic. I bought the "Arduino 3.5 inch TFT LCD Display Touch Screen UNO R3 Board Plug and Play" from this URL https://www.ebay.com/itm/373700584024?mkevt=1&mkpid=0&emsid=e11051.m43.l1123&mkcid=7&ch=osgood&euid=be5f00f68f2c4e0fbf6a9c809ebd6ed9&bu=44288059471&osub=-1%7E1&crd=20220309053229&segname=11051&sojTags=ch%3Dch%2Cbu%3Dbu%2Cosub%3Dosub%2Ccrd%3Dcrd%2Csegname%3Dsegname%2Cchnl%3Dmkcid I was using directly this TFT screen on a Wemos ESP32 board and with the 3 wires hardware mod i got sucess and the image start appearing on this screen. At the beguinning mirrored and after a lot of searches i found the correct drive for my TFT is the below one: To make your library work with my TFT i need to force the usage of #define ST7735_DRIVER but changing the dimenstions to 480*320 because with any other i always got the image mirrored :( I don't know if you know the reason for this, but according what i search seems to be the need of having the "INVERT_SS" command of init. My huge problem now is related with the touch functionality. I tested with the "MCUFRIEND_kbv" and made the callibration but i got strange measures and i can't have the touch "synchronized" with the image on screen. Exists always some difference. Testing with your libraries the touch funcionality i got first the error "TFT_eSPI' has no member named 'getTouch'". I have uncomented the line #define TOUCH_CS 21, but i'm not sure if the port number is correct. Where I can find this port? And my TFT use paralell ports, so i got after the same error as mentioned above about the spi ports. I think i'm on a dead end. Do you have any idea or could guide me to any possible solution please? Thanks in advice and Best Regards, |
This library does not support touch screens on a parallel interface TFT. That is why the error message is generated. As noted in the ReadMe, if the display board is fitted with a resistance based touch screen then this can be used by performing the modifications described in the ReadMe and the also the additional modification described in the following fork of the Adafruit library: |
The web link indicates your board uses an ILI9488 chip, so use the correct driver in the setup file. |
Hi my friend, |
Hi my friend, |
For touchsccreen for SAMD21, what should I uncomment? |
I will add that I struggled with this issue for a few hours. I started with a parallel setup and had -D ESP32_PARALLEL=1. When I switched to an SPI display I logically thought I could just set -D ESP32_PARALLEL=0. However, that apparently doesn't load the Touch.h file. Any mention of this line will cause it to not load. |
Hello, First, thanks for all this, it's a wonderful library.
I am using a NodeMCU 0.9 controller
The screen is a standard 2.8TFT, I9341 STM32 based Touch enabled screen (Using an HR2046 Chip)
https://www.amazon.com/gp/product/B073R7BH1B/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1
I did a clean install of the library, changed DC and CS for my setup and ran a couple of graphics test to be sure that the library would compile, send to my controller and display, which it does.
When I try to run a touch screen demo I get the "TFT_eSPI' has no member named 'getTouch'" error
I see it in the Keywords so I know it's there.
Is there something in the setup.h file that I'm missing? I didn't see anything specific
Any help would be greatly appreciated
Thanks
-Tim
The text was updated successfully, but these errors were encountered: