-
Notifications
You must be signed in to change notification settings - Fork 27
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
Touch not working #34
Comments
This is my logging.
This may also be helpful. This turned out to be a bad place for a logging function.
|
Thanks for your answer. I have managed to resolve most of the issue. Turns out I wasn't using the correct pins for That said I've run into some issues trying to fix this.
The problem was that, at least for my devboard (a generic esp32 with 38 GPIO pins) these pins are input only which makes them impossible to use for Because of that I ended up using the following modification of the default pinout:
With that the touch is now finally working. The screen is also working - for the most part at least. On the first touch calibration screen only the green dots are visible after touch, remaining tests are fully rendered but there is noticeable flickering. My guess is this is happening because I'm using 3v from the esp to power the display and with the adc working it can't supply enough current to the fairly big (3.5") screen. Do you think my assumption is correct or is there something I am still doing wrong? Anyway, thanks for the nice library. I've also submitted a PR #35 that you may review if you wish. |
All ESP32, GPIO pins 34-39 as "input-only".
I thought it was not possible to use a single GPIO for both digital output and analog input at the same time.
Even without the ADC running, the ESP32 development board cannot provide much current. |
Is this what you mean by that? This is my current working configuration: I'm asking this just for clarity because I thought it is impossible to even configure the pins in this way. As I understand it now the GPIO numbers are used for digital i/o and are configured completely independently from the ADC channels which are for analog input, right? |
First, thanks for providing a clear diagram.
Yes. That right.
This is a new discovery for me.
My understanding was that one GPIO could not be used for digital output and analog input at the same time. |
What problem occurred? I have confirmed that the touch panel works with the above connection. |
I am using the default wiring pinout with a ILI9486 display. The screen is working correctly but for some reason no touch is ever detected. I have verified all pin numbers and connections. Also touch is actually working correctly without any wiring or pin number modifications using a different library made for Arduino framework.
Relevant part of
sdkconfig
Program startup log:
Could
_adc_xm=1073448112
have sth to do with it? It doesn't really look correct.The counter values shown at the end weren't actually caused by touch but rather by moving the cables which also seems strange.
The text was updated successfully, but these errors were encountered: