-
Notifications
You must be signed in to change notification settings - Fork 92
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
touchscreen just display wrong data with ili9488 #46
Comments
Is there any solution for this? I have the same problem, it does not work for ili9488. |
On most displays the touch interface is made with a separate chip. Only the company who sold this display can answer regarding which hardware it really has. You didn't even give a link to the product or photo of the display. How can you except anyone to be able to answer this sort of question? Any answer with zero information about the actual display would be blind guessing! |
Sorry sir, here's my information. This is the display I'm using, ILI9488 480x320. This is the schematic I'm using. For the XPT2046, i'm using the VSPI pins of the ESP32. I tested the display with TFT_eSPI library, using the ESP32_PARALLEL (Setup16_ILI9488_Parallel.h) setup, and it was working perfectly. This library does not have a touch capability unfortunately, so that's why I wanted to use your library. This is the code which I tried:
I just get x = 0, y = 0, z = 4095, no matter if I touch the screen or not. Thank you for looking into the issue. |
Tech info is minimal on that page, but the 40 pin product appears to have no touch controller chip like XPT2046. Documentation says touch connection is raw signals on pins 1-4. Hopefully you can understand how this library can not work if the hardware you use does not have the XPT2046 chip?! Again, you could ask the vendor who sold this display for support. Only they can answer technical questions about the hardware, specifically which touch chip (if any) is on the hardware. But you should understand many displays have no touch chip. They simply give the raw signals. It is less expensive because no extra chip is used to make the display. If you have this type of display, obviously this library can not help. |
Maybe try with a board like Arduino Uno? |
ESP has complex issues with SPI. I do not use ESP, so can not help. But simple boards like Uno R3 are known to work well and easy to use, with simple SPI. Better to test with simple first. |
Okay, I give it a try, thank you! |
Before started to rewire everything, I tried this library as the last resort, and it was working perfectly. just live it here in case anyone have similar problem. |
I had the same issue and I believe that it was simply due to the fact that I was using a hardware uart for the display driver, and just daisy chaining the serial data to the touch chip. So whenever I would do a touch request it was using the same speed as the display was using which is too fast for the touch chip. Touch chip is around 2mhz. When you use the Bodmer lib, its using a separate soft uart, so the speed is much less. I think you can get around this by using the spi set clock command, but it works fine by just having a separate soft spi bus to the touch chip. |
I'm using teensy 4.0, and I connected only the touchscreen of the LCD 3.5" v1.0 (ili9488) by SPI in order to have a simple test.
I tested both examples with IRQ and without, in both cases, Data on the serial are displays strange number even if I didn't touch the screen.
If I tried exactly the same code with another LCD 2.8" v1.2 (ili9341), It works perfectly !
What's wrong with the ili9488 ? does the touch is different ?
Here is the code of the example with pin 6 as CS
Thanks in advance,
The text was updated successfully, but these errors were encountered: