-->
Page 1 of 2

2.8″ Touch LCD SPI for esp8266 (nodemcu) working....

PostPosted: Mon Jan 11, 2016 3:21 pm
by NailBuster
Hey, wanted to share what I did to get my touch/lcd screen(ILI9341) attached to nodemcu....it's working with the AdaFruit GFX library! The touch is one of those clone/inexpensive 2.8" SPI touch devices from ali (around $7 usd).....

I had to use some files from different projects and some small tweaks to get it working for my device....other than power, it uses 7 pins connected to the esp12 (nodemcu).

credit goes to Spiros Papadimitriou for his code for the touch driver(XPT2046) to share the SPI hardware pins of esp for touch/lcd.....and of course adafruit for the gfx library....

I created a page with instructions and download, it's all beta so feel free to try it out....or improve on it!

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

Re: 2.8″ Touch LCD SPI for esp8266 (nodemcu) working....

PostPosted: Tue Jan 12, 2016 1:39 am
by yoavshtainer
this look very good!

i will try it when i have time...

one question: i need spi that control CSN too, do you know where i need to connect the CSN in the ESP12?

Re: 2.8″ Touch LCD SPI for esp8266 (nodemcu) working....

PostPosted: Wed Jan 13, 2016 1:24 am
by EdCasati
I am working on a similar project using a 3.2 display and the Adafruit GFX library is worked unmodified.
The GFX library now includes custom font support, a big plus.

Re: 2.8″ Touch LCD SPI for esp8266 (nodemcu) working....

PostPosted: Thu Jan 14, 2016 6:58 pm
by NailBuster
strange as the standard library didn't work on my particular screen....clones...gotta love them :)

I also been changing the XPT touch driver to use SPI transactions....that way I've been keeping the touch at 2Mhz SPI and the screen I've tried at 32Mhz (don't know how fast/max the screen chip can actually take)...

but using SPI transactions is working for me....I've actually shared the SPI bus with another device too (max6675).