Hello everyone! I bought an LCD based on ILI9341 driver but none of the available arduino examples worked to my Arduino pro mini.
I used the CD4050 level converter (5V -> 3.3V) and a LD33V ( 5V to 3.3V voltage regulator).
Still the LCD denied to work.
So, I examine the source code of TFTv2.cpp and TFTv2.h files. I saw that the LCD's Reset pin was not initialized.
Then I add the following 2 lines to TFTv2.h files:
#define TFT_RST_LOW {DDRD |= 0x10;PORTD &=~ 0x10;} //Added by Vassilis Serasidis (18 Oct 2013)
#define TFT_RST_HIGH {DDRD |= 0x10;PORTD |= 0x10;} //Added by Vassilis Serasidis (18 Oct 2013)
and these 3 lines to TFTv2.cpp:
void TFT::TFTinit (void)
{
TFT_RST_LOW; //Added by Vassilis Serasidis (18 Oct 2013)
delay(200); //Added by Vassilis Serasidis (18 Oct 2013)
TFT_RST_HIGH; //Added by Vassilis Serasidis (18 Oct 2013)
SPI.begin();
...
...
}
After that all examples worked just fine!
You can download the library and the examples I used from https://dl.dropboxusercontent.com/u/3680094/SeeedTFTv2.zip