-->
Page 1 of 18

Libraries for touchscreen TFT module (ILI9341 + XPT2046)

PostPosted: Thu Sep 17, 2015 9:24 am
by spapadim
Not sure if this is the right forum, but recently got a generic (eBay) $7 ILI9341 (TFT driver) + XPT2046 (touch driver) module working on the ESP. The code is available on github:
You need to use all available pins (except UART -- but, if you wanted backlight control, you'd have to use one of those as well).

Combine with, eg, ~$3 ESP-12, and you can have a $10 device with graphical touch UI and network. If interested and you try out, please let me know how it went.

Re: Libraries for touchscreen TFT module (ILI9341 + XPT2046)

PostPosted: Fri Sep 18, 2015 9:49 am
by Oldmicroguy
The file in https://gist.github.com/spapadim/a4bc258df47f00831006 is to patch
tools/sdk/ld/eagle.app.v6.common.ld.orig


Where do I find this?

Oldmicroguy

Re: Libraries for touchscreen TFT module (ILI9341 + XPT2046)

PostPosted: Fri Sep 18, 2015 10:32 am
by spapadim
Oldmicroguy wrote:The file in https://gist.github.com/spapadim/a4bc258df47f00831006 is to patch
tools/sdk/ld/eagle.app.v6.common.ld.orig
Where do I find this?


If you're using the board manager, both paths (platform.txt and the linker script) are relative to the package's install root, which on Linux is $HOME/.arduino15/packages/esp8266/hardware/esp8266/<version>/ -- should be something similar on other platforms. FWIW, patches are against version 1.6.5-1084-ga39ce29 (staging), but should work on others (or just manually edit the files).

Re: Libraries for touchscreen TFT module (ILI9341 + XPT2046)

PostPosted: Fri Sep 18, 2015 8:02 pm
by SwiCago
Very nice example...Has anyone tried a larger cheap display?
would these from fleabay be compatible?
4.3"
http://www.ebay.com/itm/3-2inch-TFT-LCD ... 46383e4bca
2.4"
http://www.ebay.com/itm/240x320-2-4-SPI ... 4adab6ab15

This one would be cool too, but I don't think it uses same chips
http://www.ebay.com/itm/New-3-5-TFT-LCD ... 33a9635d1a