-
Notifications
You must be signed in to change notification settings - Fork 212
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
Configuration Issue: ESP32+stmpe610 ERROR: "pin detection" #477
Comments
@Bwanna Sorry but there is nothing to help with. This is an unimplemented feature for your touch driver as the error clearly states. You must already know your pins for touch or the Adafruit sketches would not work for you. You simply need Calibration of your touch driver. The x and y min and maxes that should be entered into your version of /esp-tftespi-default-stmpe610.h. For that simply run the diag_ard_touch_calib.ino sketch and place the numbers it gives you into the config file. I generally use the serial monitor an just cut and paste from that. |
First thanks for the feedback, but there is possibly a misunderstanding here ... This is a question about 'which' file would the "Pin Detection" be configured?. Pardon my ignorance on this, but unsuccessful in searching the GUISlice files for this. Thank you. |
@Bwanna Yes, I can see there is a misunderstanding. So I'll try again. There is no PIN Detection. These 4-wire displays unlike the touch driver for STMPE610 generally comes with almost no documentation so this program is needed for them. Since you have stated above that your Adafruit_STMPE610 test program works I assume its TouchTest.ino and you have correctly defined your touch interface at the top of this routine so you can simply edit your "../configs/esp-tftespi-default-stmpe610.h" file with the correct information. Now how to config GUIslice detailed in the wiki: As an example inside my configs/esp-tftespi-default-stmpe610.h in SECTION 4A: Update your pin connections here
I hope this clears things up for you. Paul-- |
@Pconti31 VERY much appreciate the reply! I've been researching the Wiki and testing this for days with no luck. The Adafruit_STMPE610 test program (TouchTest.ino) only requires a simple call, so nothing obvious to incorporate into the "../configs/esp-tftespi-default-stmpe610.h" file: (unless I'm missing something?)
Here is what I have in "configs/esp-tftespi-default-stmpe610.h" in SECTION 4A:
Again, REALLY appreciate the assistance!!! Been at this for many days and still unsuccessful. :( Thought: Is there a way to disable the pin detection debug process? Thank you! |
@Bwanna First please ignore the diag_ard_touch_detect.ino program it doesn't apply to your touch driver. As for your "configs/esp-tftespi-default-stmpe610.h" in SECTION 4A the TouchTest if unmodified sets:
So your defaults inside "configs/esp-tftespi-default-stmpe610.h" should be set to:
and believe it or not you are done. |
@Pconti31 Perfect! Thank you VERY much for the clarifications! Touchscreen is working with the other files. Ran Calibration and inserted the numbers into the config file. I'll stay away from the "Detect" sketch. (I probably didn't need to get hung up on that sketch as much as I did. ) Cheers! |
Discussed in #476
Originally posted by Bwanna September 26, 2022
Hi,
I have an ESP32 with an ST7789+ STMPE610 Touch and am getting the following error msg when compiling the "diag_ard_touch_detect" sketch:
Both the ST7789 (SPI) and the STMPE610 (I2C) are working using Adafruit sketches/drivers. However, this error is appearing here.
In "GUISLICE_CONFIG.h" the following:
#include "../configs/esp-tftespi-default-stmpe610.h"
In esp-tftespi-default-stmpe610.h" the following:
#define ADATOUCH_I2C_HW 1 // Touch controller via hardware I2C (uses ADATOUCH_I2C_ADDR)
#define ADATOUCH_SPI_HW 0 // Touch controller via hardware SPI (uses ADATOUCH_PIN_CS)
#define ADATOUCH_SPI_SW 0 // Touch controller via software SPI [not yet supported]
Any assistance would be greatly appreciated.
Can someone explain where the 'pin detection' is configured? which file? Have searched and unable to locate.
Thanks!
The text was updated successfully, but these errors were encountered: