-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 SPI seems hardcoded (ESP32) #1431
Comments
The touch SPI code uses the same SPI pins as the display for the interface so it is not hardcoded to a default port. As reported here the ILI9488 SPI output ( SDO/MISO) does not go tristate and this cannot be circumvented, so do not connect the SDO/MISO pins on an ILI9488 if other SPI devices are on the same SPI bus. You can use the "Test_Touch_Controller" diagnostic sketch to see if the touch screen can be read. |
Hey @Bodmer, thanks for the reply. Yes, I had already read about that and your clever fix to the diode, but in my case I never had ILI9488's SPI output connected to anything. Any thoughts now that you know this? |
Run the Test_Touch_Controller sketch to see if communications are working with the touch controller when alternative pins have been allocated. Run Read_User_Setup to check pin allocations are being correctly picked up by the compiler. List the pins you were trying to use. |
Assumed resolved. |
I am having 3x ili9488 at 3.5" with touch. Only one of these are working in touch using standard setup wiring. Only change of rst to pin 4, but it doesnt matter how i set the wiring, even moving it all to pin 12, 13 and 14 for miso and miso and clk works. It is also seen, that one customer expressing that its a parralel display indicating to be SPI. Im not sure about this. |
The link has a bad description, this suggests it is a SPI display, but some pictures show parallel boards. It is not clear to me which display boards you have. The touch function requires a chip select for the TFT and one for the touch controller. |
I have this one, as it says: 3.5 inch TFT LCD Module with Touch Panel ILI9488 Driver 320x480 SPI port serial interface (9 IO) Touch ic XPT2046 for ard stm32 Can you specify chip select for TFT and one for the touch controller? is this a chip needed to be added or a wiring? |
The chip select pins for the TFT and touch controller MUST be different. Do not connect TFT MISO as it does not go tristate on the ILI9488. See here: |
The link will show a picture of the V1. The ILI9341 SPI 3.5" and 9488 SPI 5" TFT display being V2.0 is working without any modification (removing miso will take the picture). Working setup with active Touch_CS is on V2: However, the V2.0 board has some wrong registrations in touch_CS area where it points a cm from the edge when the edge is |
Hello, i have the same issue, i have two ILI9488 marked v1.0 without the diode described there: #898 I can't get them working, with or without MISO connected. The calibration test example will autopress the corners and give the result:
Any help on this? @fungreenfox have you solved? |
Sampozzo, I have returned the issue to the seller, and he is happy to return 20% of my cost, if I send the display back. So thats a no go. I bought two more (9488 and 5"), and they are fortunately version 2, and they are working correct, even if placing the touch_cs on another pin. Pins used are: #define TFT_MISO 19 void setup() User_Setup_Select.h: In Setup21_ILI9488.h The display worked for a weeks with no trouble, though the breadboard project was paused for a month, and turning back , the display did this act of shortcutting the touch_cs. I ripped all wires off the board and placed them again. Re-calibrated the savefile, and made sure, that there were no incorrect pins in use. (try disconnect all but display until it works). But again, version 1 was a no-go for me. I asked 4-5 sellers, if they have the version 2, and nobody even knows of it. But the two ordered displays are version 2. |
Hi @fungreenfox, thank you very much for your detailed reply, i will try your code, but @Bodmer said it is not pin related but hardware. So no solution... |
@Sampozzo provide a link to each of the displays you have and list all connections between the ESP32 and each display type. I am not sure where I said it is pin related! |
@Bodmer you said it is NOT pin related but hardware, in your first reply on this post :) |
YESSSSSSSSSSSS!!!!!! Thank you very much @Bodmer |
I have bought a very nice Development Board with touch screen and ESP32 , all in one. |
I have the following question about this, GPIO21 is also required for the I2C bus (SDA). After connecting the display, can I still use the I2C bus for additional I2C slaves on the ESP32? |
The GPIO pins connected to the display cannot be used for I2C as well. Use a different GPIO for TOUCH_CS and update the setup file accordingly. |
I have just finished chasing my tail, trying to get the touch screen of an ILI9488 working on ESP32 (DevKitC v4 38-pin).
I had chosen non-standard SPI pins and customised them in User_Setup.h. The display was working perfectly, but when I tried any touchscreen sketches, the calibration phase would race through without being touched and obviously the touch didn't work once the main sketch loaded.
For other reasons, I ended up switching to standard SPI pins (18, 19, 23) and miraculously, the touch stuff all works now.
Is it possible that the SPI pins for the touch screen are hard-coded to the defaults rather than referencing the pins specified for the TFT?
All the best,
Dax Liniere.
The text was updated successfully, but these errors were encountered: