Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By WereCatf
#39190
NailBuster wrote:I've actually modified spapadim XPT2046 driver to support SPI transactions since the adafruit library supports it.


There's also Paul Stoffregen's XPT2046-library at https://github.com/PaulStoffregen/XPT2046_Touchscreen . He says the following:
XPT2046_Touchscreen is meant to be a compatible with sketches written for Adafruit_STMPE610, offering the same functions, parameters and numerical ranges as Adafruit's library.


I see no reason why that library wouldn't work on the ESP, it even has SPI-transactions in it already, but since I ain't gotten my display yet I can't test it for myself.
User avatar
By scargill
#39217 I'm working on (and have working) a software serial interface to the Nextion displays which means that when I'm done it will make for a relatively cheap (for the smaller Nextion) Serial display. Currently working on a project in Spain but when I get back in a couple of weeks I'll get that sorted and blog it at http://tech.scargill.net
User avatar
By sfinx
#39390
NailBuster wrote:FYI...I've used the adafruit GFX, with the IL9341 esp modified driver and this spapadim (for xpt2046 touch driver).

I've actually modified spapadim XPT2046 driver to support SPI transactions since the adafruit library supports it. I've tested 32Mhz on the TFT with 2Mhz for the touch and seems to work ok (haven't tested all graphic functions).

I also have a page for this hardware on how to setup (although it doens't have the updated source for spi transactions yet)

http://nailbuster.com/?page_id=341

Just switched from Ucglib to Adafruit GFX as explained in this post. Everything works fine and the Adafruit library is much faster.
User avatar
By smily77
#55950 XPT2046 not working anymore!

I had one of this 2.4" locost TFT's https://www.aliexpress.com/item/240x320-2-4-SPI-TFT-LCD-Touch-Panel-Serial-Port-Module-with-PBC-ILI9341-3-3V/32665623105.html?spm=2114.13010608.0.0.UFqTtb .I've used the adafruit GFX, with the IL9341 esp modified driver and this spapadim (for xpt2046 touch driver) - as @nailbuster describe in http://nailbuster.com/?page_id=341 with a ESP-12. Everthing worked fine.

Now I ordered an other one. It look pretty much the same except the plastic below the soldering pins is yellow while the first one was black. But using exactly the same program the touch function doesn't work! When I connect the old display it works - the new doesn't work. :? It cant be a defective display as I ordered 2 TFT's and have with both exactly the same.

When I check the output of the XPT2046 libary: if reacts on the interrupt but gives alway the same x/y numbers no matter where I touch the screen

Can someone help me :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: