ST7796S 4in TFT Display

jhaimerl

New member
Hi,
I am trying to use a 4in ST7796S display (on Amazon: https://www.amazon.com/dp/B0CKRJ81B5?ref_=ppx_hzsearch_conn_dt_b_fed_asin_title_1&th=1).
I see the ST7735_t3 example, and used this as a starting point. There doesn't seem to be a SST7796S section in the code. I get it to compile, and have tried uncommenting multiple options in the definition of tft... set tft.init to 320 x 480 (and 480x320)... also tried different offsets with tft.setRowColStart... The display is doing something but it is all jumbled... Is there any code elsewhere for this display? I saw a thread where someone was trying to modify the code, but it was never resolved (https://github.com/PaulStoffregen/ST7735_t3/pull/35/files#top).



1745358485805.png
 

Attachments

  • TFT_Test1.ino
    10.1 KB · Views: 74
Did you ever have any luck with this? I've tried the "graphics test" sketch that comes with the teensy ST7735 library, just changed my pixels to 320x480 (also tried 480x320). It does the same thing you describe, shows some of the intended graphics but it's all garbled.
 
Did you ever have any luck with this? I've tried the "graphics test" sketch that comes with the teensy ST7735 library, just changed my pixels to 320x480 (also tried 480x320). It does the same thing you describe, shows some of the intended graphics but it's all garbled.
Not really. I switched to TFT_espi library and it works great
 
Not really. I switched to TFT_espi library and it works great
I actually think I found a fix. I updated to teensyduino 1.6 beta 5 manually. This includes an update to the ST7735 library which specifically adds the ST7796. I was able to successfully run the "graphicstest" sketch.
 
Back
Top