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

Inverse colors #3

Closed maitredede closed 5 years ago

maitredede commented 8 years ago

Hi,

When trying samples my color are inversed (red is cyan, black is white...)

In my app, I have to inverse all color bits to get the right colors :)

JoaoLopesF commented 8 years ago

Hi,

Please modify the SPFD5408_Adafruit_TFTLCD line 307

before:

// *** SPFD5408 change -- Begin
// Not tested yet
//writeRegister8(ILI9341_INVERTOFF, 0);
//delay(500);

after:

// *** SPFD5408 change -- Begin
// Not tested yet
writeRegister8(ILI9341_INVERTOFF, 0);
//delay(500);
rohanraut92 commented 8 years ago

Im getting 2 half screens. Idk how to resolve it.

tsvelichkov commented 8 years ago

i had to use this to fix my inverted colors: writeRegister8(ILI9341_INVERTON, 0);

this is commented //writeRegister8(ILI9341_INVERTOFF, 0);

This fixed the color issue on my LCD

nopnop2002 commented 7 years ago

Hello manniakk. Your TFT controller is NOT SPFD5408. It's ILI9342.

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

Mark42XLII commented 7 years ago

In my case, pure colors and secondary colors kinda work fine, but the other colors and black always are weird. Like, black looks like purple.

nopnop2002 commented 7 years ago

Hello manniakk. Try this. https://github.com/prenticedavid/MCUFRIEND_kbv/tree/master/examples/LCD_ID_readreg You can see your tft driver.