Closed griffinmt closed 1 year ago
They are defined in User_Setup.h in the TFT_eSPI library. Also make sure you wire up the BL (Backlight) pin. Either to a pin defined in User_Setup.h or directly to 3.3V. If you hook it up to 3.3V the backlight is always lit so I do not recommend it, but it is a good way to test.
But these touch pins are not defined anywhere. I would add them myself, but what are they named. For examble, is it TOUCH_IRQ or TFT_T_IRQ or just _IRQ. How does the software know what pin I am using for IRQ etc.
They are not defined separately if you are using the ILI9488 module, becuase both the screen and touch use SPI. You can find the correct setup in for an ESP32 with ILI9488 module here: ESP32_Dev_Kit_V1_ILI9488_Resistive.h
So, I dont need to physically wire any pins to the display touch screen connections other than T_CS. Is that correct?
No, you also nee to wire T_DIN, T_DO, T_CS and T_CLK. Because although in software they are the same (except for T_DO, which is not used by the screen), the SPI pins on the module for the screen and the touch controller are not connected on the PCB.
I was going to buy your pcb for doing this, as the first one was essentially free, till I found out there was a $29 shipping fee.
Go some results today. I switched over to an ILI9341 display, and altered some pin assignments, and I got the button screen up!!! BUT that screen is smaller than the 88, so I only see the top two buttons and part of the two below them. Is there a way to shrink everything proportionally?
Yes there is. In FreeTouchDeck.ino you can define the height and width of the screen.
#define SCREEN_WIDTH 480
#define SCREEN_HEIGHT 320
If you do that, everything should scale accordingly.
I am a dummy some times!!!
If you've written the software, it is easy to find. 😉
Btw... if your screen is broken I hope you can get a replacement. And if you like you may close this issue.
Just an FYI: These are my current settings that work on the 9341 but not on the 9488. Will order a new one. Thanks for your help.
Where are the pins of the ESP32 defined to work the Touchscreen, in particular T_CLK,T_DIN,T_OUT,T_IRQ. I have the screen wired up for T_CLK=G18,T_DIN=G23,T_OUT=G19,T_IRQ=G27 BTW: Using a 3.5" ILI9488