Problem with 0.96" TFT display ST7735

For general Flowcode discussion that does not belong in the other sections.
Post Reply
OderlandoRSilva
Posts: 24
http://meble-kuchenne.info.pl
Joined: Mon Oct 30, 2023 1:17 pm
Has thanked: 2 times
Been thanked: 5 times

Problem with 0.96" TFT display ST7735

Post by OderlandoRSilva »

I recently received some 0.96" ST7735S TFT displays and decided to test them.
In the picture of the display you can see that the available communication pins are SCL-SDA-RES-DC-CS-BLK, but in FlowCode the available pins are MOSI-MISO-CLK-RES-DC-CS-BLK. So, I connected them as follows:
CLK ------ SCL
MOSI ---- SDA
MISO ---- Disconnected
RES ------ RES
DC -------- DC
CS -------- CS
BLK ------ BLK
I created a basic test flowchart, but it didn't work.
I tested several connection methods and several MCUs, but nothing worked.
So, I decided to select the ST7789 in the flowcode and see what happened.
To my surprise, the display worked.
I'm posting the picture of the display model, a real picture in operation and the flowchart. I would like someone to help me understand what is happening.
Attachments
0.96 TFT.jpg
0.96 TFT.jpg (90.52 KiB) Viewed 1249 times
IMG_20250112_111325176_HDR.jpg
IMG_20250112_111325176_HDR.jpg (86.39 KiB) Viewed 1249 times
STM32F030F4P6-TFT-0.96.fcfx
(19.63 KiB) Downloaded 53 times

medelec35
Matrix Staff
Posts: 1956
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 626 times
Been thanked: 657 times

Re: Problem with 0.96" TFT display ST7735

Post by medelec35 »

Hello.
I have tested both ST7735 and ST7789
For me the ST7735 component only worked with ST7735 HW & the ST7789 component only worked with ST7789 HW.
I'm wondering if the GLCD you has been marked with the wrong chip?
Martin

OderlandoRSilva
Posts: 24
Joined: Mon Oct 30, 2023 1:17 pm
Has thanked: 2 times
Been thanked: 5 times

Re: Problem with 0.96" TFT display ST7735

Post by OderlandoRSilva »

Hi Martin, I was actually thinking about this possibility. Your test reinforces this possibility. I have ordered different samples to test, but your information is very helpful to me. I really appreciate your input.

OderlandoRSilva
Posts: 24
Joined: Mon Oct 30, 2023 1:17 pm
Has thanked: 2 times
Been thanked: 5 times

Re: Problem with 0.96" TFT display ST7735

Post by OderlandoRSilva »

There is also another thing that made me curious. The blue and red colors are switched. When selecting the red color, the blue color appears. When selecting the blue color, the red color appears. Does this happen with your displays too?

medelec35
Matrix Staff
Posts: 1956
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 626 times
Been thanked: 657 times

Re: Problem with 0.96" TFT display ST7735

Post by medelec35 »

Yes at first with your project.
It's because within the display properties under Colour, you had Invert colours set to Yes instead of No
Martin

OderlandoRSilva
Posts: 24
Joined: Mon Oct 30, 2023 1:17 pm
Has thanked: 2 times
Been thanked: 5 times

Re: Problem with 0.96" TFT display ST7735

Post by OderlandoRSilva »

I hadn't realized that. Thank you very much for your help.

Post Reply