user15823: I recently got one TFT LCD from aliexpress which supports SPI and uses ILI9341.
This is the one.TFT LCD
I have the ESP8266 EspressoLite 1 board, and I am using ESP8266 Arduino.
(https://github.com/esp8266/Arduino)
I made the following connection :
SCK #14, MOSI #13, MISO #12 and CS #4, DC #5,RESET #0
and used the example graphicTest (which is available in the Adafruit_ILI9341-master folder) . I was able to make the display work for a few seconds.
In the graphic test, once the line test starts my ESP8266 gets restarted. This was getting repeated .
In my existing project, I used the following code to just show some messages :
Adafruit_ILI9341 tft = Adafruit_ILI9341(4, 5, 13, 14, 0, 12);
  tft.begin()
  tft.fillScreen(ILI9341_BLACK);
  tft.setCursor(0, 0);
  tft.setTextColor(ILI9341_GREEN);  tft.setTextSize(4);
  tft.println(message);

The message is shown once a response is sent back from ESP. This works for a couple of times and then it again gets stuck and reboots.
I am not sure whether I am using the optimised library for ESP8266 for this LCD or whether there is any as such.
I read in forums and could see that there were some adafruit libraries in the ESP8266 Arduino but now that it is not available and only some TFT_Touch_Shield_V2 are present.
Has anyone faced the same issue or can tell me a better way to make this display work with ESP8266 Arduino.
Thanks in advance. !!!

user10024: You did not include any output from the esp8266, but I'm pretty sure what is happening is that the watchdog timer is expiring and resetting your board. This is because the SPI transactions to transfer data to the display are taking too long.
Put the following line in both setup() and loop() before any display operations happen:
wdt_disable();
Needless to say, if you actually do need the WDT in your application, you can reenable it after the display operations complete (of course, if you are doing something that depends on the wdt, you already know this!)
Look at the source for the Adafruit library, make sure there are #ifdef ESP8266 statements there; older versions did not support the 8266.
You may also want to increase the default speed at which the library drives the SPI bus from 8000000. I've gotten it to work at up to 40MHz, with the board flashed at 160MHz of course, and it's a lot faster (unsurprisingly), but if you have long wires or a marginal-quality display, that may fail.
Post pictures :)

15823: <p>I recently got one TFT LCD from aliexpress which supports SPI and uses ILI9341.</p>
<p>This is the one.<a href="http://www.aliexpress.com/item/Wholesale-1PC-2-2-Inch-240-320-Dots-SPI-TFT-LCD-Serial-Port-Module-Display-ILI9341/32508607290.html" rel="nofollow noreferrer">TFT LCD</a></p>
<p>I have the ESP8266 EspressoLite 1 board, and I am using ESP8266 Arduino.
<a href="https://github.com/esp8266/Arduino" rel="nofollow noreferrer">(https://github.com/esp8266/Arduino)</a></p>
<p>I made the following connection :
SCK #14, MOSI #13, MISO #12 and CS #4, DC #5,RESET #0</p>
<p>and used the example graphicTest (which is available in the Adafruit_ILI9341-master folder) . I was able to make the display work for a few seconds.
In the graphic test, once the line test starts my ESP8266 gets restarted. This was getting repeated .</p>
<p>In my existing project, I used the following code to just show some messages :</p>
<pre><code>Adafruit_ILI9341 tft = Adafruit_ILI9341(4, 5, 13, 14, 0, 12);
  tft.begin()
  tft.fillScreen(ILI9341_BLACK);
  tft.setCursor(0, 0);
  tft.setTextColor(ILI9341_GREEN);  tft.setTextSize(4);
  tft.println(message);
</code></pre>
<p>The message is shown once a response is sent back from ESP. This works for a couple of times and then it again gets stuck and reboots.</p>
<p>I am not sure whether I am using the optimised library for ESP8266 for this LCD or whether there is any as such.</p>
<p>I read in forums and could see that there were some adafruit libraries in the ESP8266 Arduino but now that it is not available and only some TFT_Touch_Shield_V2 are present.</p>
<p>Has anyone faced the same issue or can tell me a better way to make this display work with ESP8266 Arduino.</p>
<p>Thanks in advance. !!!</p>
 10024: <p>You did not include any output from the esp8266, but I'm pretty sure what is happening is that the watchdog timer is expiring and resetting your board. This is because the SPI transactions to transfer data to the display are taking too long.</p>

<p>Put the following line in both <code>setup()</code> and <code>loop()</code> before any display operations happen:</p>

<p><code>wdt_disable();</code></p>

<p>Needless to say, if you actually <em>do</em> need the WDT in your application, you can reenable it after the display operations complete (of course, if you are doing something that depends on the wdt, you already know this!)</p>

<p>Look at the source for the Adafruit library, make sure there are <code>#ifdef ESP8266</code> statements there; older versions did not support the 8266.
You may also want to increase the default speed at which the library drives the SPI bus from 8000000. I've gotten it to work at up to 40MHz, with the board flashed at 160MHz of course, and it's a lot faster (unsurprisingly), but if you have long wires or a marginal-quality display, that may fail.</p>

<p>Post pictures :)</p>
