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

Moderator: igrr

User avatar
By tontito
#16042
Ribeiro Santos wrote:Finally able to compile the ILI9341 example with Arduino IDE.

tontito:
My TFT works well, also the colors are ok, just the RED is not really really RED.
In the SMING ILI9341 example there is a function tft_readId(void), that gives the device ID. What value it returns?


not read id.

My ID is: 0x00 LCD Flex cable TJC-024-9341.VO

i have test arduino nano and CD4050 level shifter. Same color problem.

All code remove same LCD color incorrect ESP8266 or Arduino Nano

TFT begin function
/*
sendCMD(0xCB);
WRITE_DATA(0x39);
WRITE_DATA(0x2C);
WRITE_DATA(0x00);
WRITE_DATA(0x34);
WRITE_DATA(0x02);

sendCMD(0xCF);
WRITE_DATA(0x00);
WRITE_DATA(0xC1);
WRITE_DATA(0x30);

sendCMD(0xE8);
WRITE_DATA(0x85);
WRITE_DATA(0x00);
WRITE_DATA(0x78);

sendCMD(0xEA);
WRITE_DATA(0x00);
WRITE_DATA(0x00);

sendCMD(0xED);
WRITE_DATA(0x64);
WRITE_DATA(0x03);
WRITE_DATA(0X12);
WRITE_DATA(0X81);

sendCMD(0xF7);
WRITE_DATA(0x20);

sendCMD(0xC0); //Power control
WRITE_DATA(0x23); //VRH[5:0]

sendCMD(0xC1); //Power control
WRITE_DATA(0x10); //SAP[2:0];BT[3:0]

sendCMD(0xC5); //VCM control
WRITE_DATA(0x3e); //Contrast
WRITE_DATA(0x28);

sendCMD(0xC7); //VCM control2
WRITE_DATA(0x86); //--
*/
sendCMD(0x36); // Memory Access Control
WRITE_DATA(0x48); //C8 //48 68绔栧睆//28 E8 妯睆

sendCMD(0x3A);
WRITE_DATA(0x05);
/*
sendCMD(0xB1);
WRITE_DATA(0x00);
WRITE_DATA(0x18);

sendCMD(0xB6); // Display Function Control
WRITE_DATA(0x08);
WRITE_DATA(0x82);
WRITE_DATA(0x27);

sendCMD(0xF2); // 3Gamma Function Disable
WRITE_DATA(0x00);

sendCMD(0x26); //Gamma curve selected
WRITE_DATA(0x01);

sendCMD(0xE0); //Set Gamma
WRITE_DATA(0x0F);
WRITE_DATA(0x31);
WRITE_DATA(0x2B);
WRITE_DATA(0x0C);
WRITE_DATA(0x0E);
WRITE_DATA(0x08);
WRITE_DATA(0x4E);
WRITE_DATA(0xF1);
WRITE_DATA(0x37);
WRITE_DATA(0x07);
WRITE_DATA(0x10);
WRITE_DATA(0x03);
WRITE_DATA(0x0E);
WRITE_DATA(0x09);
WRITE_DATA(0x00);

sendCMD(0XE1); //Set Gamma
WRITE_DATA(0x00);
WRITE_DATA(0x0E);
WRITE_DATA(0x14);
WRITE_DATA(0x03);
WRITE_DATA(0x11);
WRITE_DATA(0x07);
WRITE_DATA(0x31);
WRITE_DATA(0xC1);
WRITE_DATA(0x48);
WRITE_DATA(0x08);
WRITE_DATA(0x0F);
WRITE_DATA(0x0C);
WRITE_DATA(0x31);
WRITE_DATA(0x36);
WRITE_DATA(0x0F);
*/
sendCMD(0x11); //Exit Sleep
delay(120);

sendCMD(0x29); //Display on

Only 4 command enough other command unnecessary.
User avatar
By andrew melvin
#16972 I would really like to get a screen working withy ESPs...

I have a bunch of these SP1 screens that work with my nanos but when i hook them up to the ESP Arduino i get white screen.

I'm using these connections and the latest arduino environment. and the ILI9341 example compiles fine.
not working for me. 2.4" ili9341 tft lcd touch screen.

ESP8266 ili9341 2.4" LCD
GPIO 2 D/C
GPIO15 CS (and GPIO15 -> GND)
GPIO12 MISO/SDO
GPIO13 MOSI/SOI
GPIO14 SCK
3.3v -> pot LED
3.3v RESET
3.3v VCC
GND GND

does anyone have some suggestions?
User avatar
By alonewolfx2
#17031 gpio15 to gnd with or without resistor ?
andrew melvin wrote:I would really like to get a screen working withy ESPs...

I have a bunch of these SP1 screens that work with my nanos but when i hook them up to the ESP Arduino i get white screen.

I'm using these connections and the latest arduino environment. and the ILI9341 example compiles fine.
not working for me. 2.4" ili9341 tft lcd touch screen.

ESP8266 ili9341 2.4" LCD
GPIO 2 D/C
GPIO15 CS (and GPIO15 -> GND)
GPIO12 MISO/SDO
GPIO13 MOSI/SOI
GPIO14 SCK
3.3v -> pot LED
3.3v RESET
3.3v VCC
GND GND

does anyone have some suggestions?
User avatar
By Blurfl
#17052 Look into the recent (May 9, 7:21AM PDT) chat on the esp8266/Arduino Gitter.
Links2004 is working on some very promising patches to the Adafruit_ILI9341 library, getting remarkable speed - the whole graphic demo runs in under nine seconds on the setup I've seen.