Adafruit is open and shipping! Let's build back better, together!
0

Color Problem with 3.5 TFT touchscreen
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Color Problem with 3.5 TFT touchscreen

by greg06 on Sun Nov 08, 2020 2:24 pm

Hi everyone,

I have ordered a Adafruit 3.5" color TFT touchscreen.
I am testing it, but I have a two problems.

The screen do not display the good color, when I ask tft.fillScreen(HX8357_RED); I obtain Blue
For Blue I obtained Red
For Yellow I obtained Cyan
For Cyan I obtained Yellow
etc....

When I use Adafruit breakoutytouchpaint exemple, I have the same colors problem. But in addtiion, the touch screen do not work.
When I touch the screen I do not see what I am drawing.
I checked the serial console, I can see the touch coordinates, but nothing happens to the sreen.

I measured the resistance between X+ & X-, I have 299.

Could you help me ?
Thanks
Last edited by greg06 on Sun Nov 08, 2020 3:04 pm, edited 1 time in total.

greg06
 
Posts: 12
Joined: Mon Apr 03, 2017 3:57 pm

Re: Color Problem with 3.5 TFT touchscreen

by greg06 on Sun Nov 08, 2020 2:42 pm

I tested with tft.invertDisplay(1);
Now the blue is not Red, he is Yellow

greg06
 
Posts: 12
Joined: Mon Apr 03, 2017 3:57 pm

Re: Color Problem with 3.5 TFT touchscreen

by greg06 on Sun Nov 08, 2020 3:00 pm

I noted the X & Y coordinates, it is bizarre, specially for the Y
Top/Left Corner : 778-1002 Top/Right Corner : 780/783

Bot/Left Corner : 967-974 Bot/Right Corner : 980/580

Thanks

greg06
 
Posts: 12
Joined: Mon Apr 03, 2017 3:57 pm

Re: Color Problem with 3.5 TFT touchscreen

by adafruit_support_carter on Mon Nov 09, 2020 4:18 pm

Can you link to the product page for the specific TFT you are using. They come in a couple of different form factors, so want to make sure which one you have.

adafruit_support_carter
 
Posts: 17777
Joined: Tue Nov 29, 2016 2:45 pm

Re: Color Problem with 3.5 TFT touchscreen

by greg06 on Wed Nov 11, 2020 6:23 am

Hello, I use this screen :
3.5" TFT 320x480 + Touchscreen Breakout Board w/MicroSD Socket - HXD8357D
https://www.adafruit.com/product/2050

Thanks

greg06
 
Posts: 12
Joined: Mon Apr 03, 2017 3:57 pm

Re: Color Problem with 3.5 TFT touchscreen

by adafruit_support_carter on Wed Nov 11, 2020 2:34 pm

Thanks. Your issue is only with touch, correct? You mention colors worked, but then maybe the didn't?

For touch - how hard are you pressing?

adafruit_support_carter
 
Posts: 17777
Joined: Tue Nov 29, 2016 2:45 pm

Re: Color Problem with 3.5 TFT touchscreen

by greg06 on Fri Nov 13, 2020 7:11 pm

Hi,

Finally I resolved the problem with touch.
But I have always the problem with the color.
For this code :
[code]include <SPI.h>
#include "Adafruit_GFX.h"
#include "Adafruit_HX8357.h"

#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST 8

Adafruit_HX8357 tft = Adafruit_HX8357(TFT_CS, TFT_DC, TFT_RST);

void setup() {
Serial.begin(9600);
tft.begin();
tft.fillRect(20, 20, 80, 80, HX8357_YELLOW);
}

void loop() {
}/code]

The screen display a cyan rectangle.

For all the color I have the same problem
for tft.fillRect(20, 20, 80, 80, HX8357_RED); The screen display a blue rectangle
for tft.fillRect(20, 20, 80, 80, HX8357_BLUE); The screen display a red rectangle
for tft.fillRect(20, 20, 80, 80, HX8357_CYAN); The screen display a yellow rectangle

greg06
 
Posts: 12
Joined: Mon Apr 03, 2017 3:57 pm

Please be positive and constructive with your questions and comments.