JoaoLopesF / SPFD5408

Adafruit Libraries changed to works in TFT 2.4 shields with the SPFD5408 controller for Arduino Uno and Mega (Discontinued library)
MIT License
154 stars 110 forks source link

Mirrored text #9

Closed RafaEspG closed 5 years ago

RafaEspG commented 8 years ago

First, thanks for the code, and an apology for my bad english.

It work very fine (the touch screen and colors, works fine in Arduino Mega 2560) but i have a problem when im using "tft.setRotation(1);" , the text is mirrored and coordinates of the drawings too, and i can´t fix this.

Can you help me, please?

nopnop2002 commented 7 years ago

Perhaps Your TFT controller is NOT SPFD5408. It's ILI9342.

https://forum.arduino.cc/index.php?topic=473885.0

JoaoLopesF commented 7 years ago

HI, in line 309 of SPFD5408_Adafruit_TFTLCD.cpp, try uncomment this lines: // *** SPFD5408 change -- Begin // Not tested yet //writeRegister8(ILI9341_INVERTOFF, 0); //delay(500); Regards Joao

wkyong commented 6 years ago

I am using your library for my 2.8inch TFT screen from MCUfriend. I manage to get it to display the program using identifier ID 0x7575. However I find the text all mirrored. I had tried to add in the code 0x16, 0x08 to set the MY, MX and MV to 0, 0, 0 but failed. I am not able to find which code actually inverted the screen. Supplier of this screen claim they use a SPFD 5408 controller which lead me to this library. Please help me by providing some insight on which code I should change to rectify this problem.

wkyong commented 6 years ago

I had my problem solved. Upon checking the lcd ID, it shows 4747 which link to HX8437D lcd controller. By using the correct library the TFT screen works flawlessly.

marcudanf commented 6 years ago

@wkyong I have the same issue, can you please send a link to that library??