Go Down

Topic: ili9488 with tuoch screen (Read 49285 times) previous topic - next topic

diger67

Jul 22, 2015, 09:45 pm Last Edit: Jul 24, 2015, 01:31 am by diger67
Hello. Preobrela's such a thing. With controller LSD figured everything works. But with touch sreen there is a problem. Pour Point sketch touch running almost the entire area of the screen. When run TEST stitch it does not respond to 1/4 Eran. Where to dig .... ??

http://ru.aliexpress.com/item/Free-shipping-5pcs-lot-LCD-Display-Module-TFT-3-5-inch-TFT-LCD-screen-for-Arduino/1989274412.html

diger67

Understood. It was necessary to improve over the library, and everything worked.

diger67

#2
Jul 23, 2015, 08:32 pm Last Edit: Jul 24, 2015, 01:37 am by diger67
In the archives of the Library folder are supported ili9341 240x320, ili9488 480x320, for quite uncomment the desired resolution and compile the sketch.

http://178.130.34.198/adafruit/adafruit.rar

You can add a function on / off LSD can only add to the Shield backlight control. Insert in .ccp
Code: [Select]

void Adafruit_TFTLCD::lcdoff(void) {
 
 CS_ACTIVE;
 CD_COMMAND;
 write8(0x28);
 CD_DATA;
 write8(0);
 CS_IDLE;
}

void Adafruit_TFTLCD::lcdon(void) {
 
 CS_ACTIVE;
 CD_COMMAND;
 write8(0x29);
 CD_DATA;
 write8(0);
 CS_IDLE;
}


Insert in .h
Code: [Select]

void   lcdoff();
 void   lcdon();



diger67

#3
Jul 26, 2015, 01:03 am Last Edit: Aug 17, 2015, 11:40 am by diger67
little changed sketch tftpaint2. Now you can see the work of LСD Shield 3.95 ili9488.

darry

Helo diger67. I have this shield with ILI9488. I tried your file, but i can see only white color. Serial monitor stuck on paint message. I use arduino mega shield. Can you help me please on this? Thanks a lot

diger67

#5
Aug 17, 2015, 11:45 am Last Edit: Aug 17, 2015, 11:52 am by diger67
Helo diger67. I have this shield with ILI9488. I tried your file, but i can see only white color. Serial monitor stuck on paint message. I use arduino mega shield. Can you help me please on this? Thanks a lot
Hi. Are you sure that this is ili9488. More like it ili9327. Just download the sketch is not enough. It should also establish a library. The standard library adafruit no support ili9488 and ili9327. Start a terminal and see how determined the chip TFT.

darry

Can you please share, how to check the ID of the chip please? Thanks a lot

nopnop2002

Hello diger67.
I have same problem.
I got http://178.130.34.198/adafruit/adafruit.rar.

I added Serial.print in readID function.
And I tried.

-------------------------------------------------------------
uint16_t Adafruit_TFTLCD::readID(void) {

 uint8_t hi, lo;

 /*
 for (uint8_t i=0; i<128; i++) {
   Serial.print("$"); Serial.print(i, HEX);
   Serial.print(" = 0x"); Serial.println(readReg(i), HEX);
 }
 */

 // caryg
 // somehow executing this debug code causes
 // us to correctly read 0x9341 below.
 // some sort of timing issue?
 // at least one of the Serial.print s below
 // needs to execute then we read 0x9341
 //uint16_t foo = readReg(0x04);
 //Serial.print("Foo ");
 //Serial.println(foo, HEX);

 //delay(1000);

 if (readReg(0x04) == 0x8000) { // eh close enough
   // setc!
   /*
     Serial.println("!");
     for (uint8_t i=0; i<254; i++) {
     Serial.print("$"); Serial.print(i, HEX);
     Serial.print(" = 0x"); Serial.println(readReg(i), HEX);
     }
   */
   writeRegister24(HX8357D_SETC, 0xFF8357);
   delay(300);
   if (readReg(0xD0) == 0x990000) {
     return 0x8357;
   }
 }

 uint16_t id = readReg(0xD3);
 Serial.print("readReg(0xD3)=");
 Serial.println(id,HEX);
 if (id == 0x9341) {
return id;
}
 if (id == 0x9488) {
return id;
}
 
 id = readReg(0xEF); //
 if (id == 0x9327) { //
return 0x9327; //
 }
 
 CS_ACTIVE;
 CD_COMMAND;
 write8(0x00);
 WR_STROBE;     // Repeat prior byte (0x00)
 setReadDir();  // Set up LCD data port(s) for READ operations
 CD_DATA;
 read8(hi);
 read8(lo);
 Serial.print("hi=");
 Serial.print(hi,HEX);
 Serial.print(" lo=");
 Serial.println(lo,HEX);
 setWriteDir();  // Restore LCD data port(s) to WRITE configuration
 CS_IDLE;

 id = hi; id <<= 8; id |= lo;
 return id;
}
-------------------------------------------------------------

TFT LCD test
Using Adafruit 2.8" TFT Breakout Board Pinout
TFT size is 240x320
readReg(0xD3)=0
hi=B5 lo=9
Unknown LCD driver chip: B509



david_prentice

It is not an ILI9488.

You have a R61509V controller.   The screen is 240x400.

I suspect that you have "61509" rubber stamped on the bottom of your pcb.

AliExpress and Ebay vendors will say anything to get your money.   Just treat their websites with caution.

Oh,   the display should work just fine with the correct library.    There does not seem to be any way to attach a ZIP file to a PM.   PM me with your email address.

David.

nopnop2002

Thank you very much for your answer.
The board have "61509" rubber stamped on the bottom of your pcb.
Could you upload a correct library in your Web site or Google Drive or DropBox?

nopnop2002

This is my type mistake.
The board have "61509" rubber stamped on the bottom of your pcb.

This is a correct answer.
The board have "61509" rubber stamped on the bottom of my pcb.



david_prentice

I do not have a website or Dropbox account.   Do you not have an Email ?

David

nopnop2002

Hello David.

You can send a file to me using the following page.
You have to install nothing.
You don't need any password.

https://dbinbox.com/nopnop2002

When you use chrome, you can use Drag&Drop.

david_prentice

I have no intention of using any random dropbox.
I do not use Chrome.

David.

david_prentice

#14
Aug 27, 2015, 05:47 pm Last Edit: Dec 17, 2015, 11:08 am by david_prentice
Please go to the new Thread to download the MCUFRIEND_kbv library.

https://forum.arduino.cc/index.php?topic=366304.msg2524865#msg2524865

David.

Go Up