1

I have bought 2 tft lcd from this link: https://www.aliexpress.com/snapshot/8378816373.html?orderId=79915084513225&productId=32610719676

and after implementing the codes in here : RPi 2 and 3.95 TFT ili9488,

i manage them to work. But while one of them has standart colors and can render the images correctly the other one is kinda weird. Like the colors inverted somehow.

Since one of them works correctly and the other is weird i am thinking is a hardware problem but i want to try with inverted colors to check if i am right.

Can anyone point some directions to generate inverted color version of the output ? Usually it only requires to change a register but i dont know which of them...

the photo of the displays can be seen below: 1st one is ok, 2nd one is the problematic. here is the picture of the displays

AeS
  • 11
  • 1
  • 4

1 Answers1

2

Sorry about digging up an old thread, but I came across it while looking for ideas on setting up my own ILI9488 on a Pi, and I've got a solid hunch on this problem.

I have not tried this, but have seen this issue with other display controllers (ILI9341). There is an BGR/RGB parameter which sets the colour order. It looks like you have a blue/red swap issue (red swapped for blue, green swapped for orange).

The options line of my ILI9341 setup has a bgr=1 parameter, which should set the colour order. I would suggest adding this to part 3 of RPi 2 and 3.95 TFT ili9488 where the options are added to

sudo nano /etc/modprobe.d/fbtft.conf

When I changed this to bgr=0 on my setup, I ended up with a very similar colour problem.

user85471
  • 131
  • 4