[probably SOLVED: live with it] BLUE and RED reversed

Hello,
i've got a SainSmart 1.8 ST7735R TFT LCD (connected to an UNO) with a little problem.
It seems as BLUE and RED are reversed.

When using the standard TFTDisplyText example "TFTscreen.stroke(0,0,255);" produces red text
(255,0,0) is blue.
(0,255,0) is green.

And when i try to display a BMP image with different examples, the image shows but the colors are off.

Can this be a fault in my wiring, the code, or the hardware?

Thanks for any insights.

Can this be a fault in my wiring, the code, or the hardware?

Yes.

Thanks for any insights.

You will have a better chance of getting meaningful help if you provide more information. A link to the 'standard TFTDisplyText example' and another to the datasheet for your display would be a start and a photo of your setup may be helpful as well.

Don

Hi Don,

Yes

I'll be more precise:
Can this be a fault in my wiring? (is it possible to connect the wires in such a way that this happens. Seems unlikely as there are no separate color connection pins on the tft unit)
Can this be a fault in the code? (seems unlikely as i got it from here: http://arduino.cc/en/Tutorial/TFTDisplayText)
Can this be a fault in the hardware? (surely it's possible this was a manufacturing error, but is that likely with hardware from www.sainsmart.com ?)

This 1.8" TFT SPI LCD Screen with MicroSD Socket for Arduino – SainSmart.com is the screen.
With the datasheet here SainSmart | Desktop CNC, 3D Printing & DIY Tools | Power to the Makers – SainSmart.com

picture of setup

exosceleton:
This 1.8" TFT SPI LCD Screen with MicroSD Socket for Arduino – SainSmart.com is the screen.
With the datasheet here SainSmart | Desktop CNC, 3D Printing & DIY Tools | Power to the Makers – SainSmart.com

Not certain this is your problem, but....
Did you see this in the datasheet?

I did not, thank you very much, it seems very promising.
However i'm afraid do do not know enough to understand how to use this information. Is there a command i can run in the sketch to alter this setting?

Is there a command i can run in the sketch to alter this setting?

No it is saying there is a pin called SRGB and depending on if it connected to a zero or one depends on the order.
This is pin number 15 as shown on page 12 and page 6.

If you have no way to change this pin then you are stuck with the option you have.

nothing to physically set on the unit i'm afraid. i'll have to live with it.
Thanks Mike,Dave

By the looks of if, since you're getting the GBR order of colors instead of RGB, there is probably a pullup resistor on Pin15 setting it high. You can measure it with a multimeter (when it's off) check the resistance between VCC and Pin15. In case it is not 0 (as in not a direct connection to VCC, or the 3.3v output of the voltage regulator if there is one) you can simply connect that pin to GND, thus enabling RGB mode.

unfortunately there is no access...

I.jpg

exosceleton:
unfortunately there is no access...

Yeah...might be best to just live with it & work around it. :roll_eyes:

That's why God created the "Replace & Find" button. :smiley:

Got my screen and rotary encoder talking to each other. :slight_smile:

Next step: integrating the external software serial read.

Thanks everybody