Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 7 of 7

Thread: Problems with display ST7735S and Teensy 4.0

  1. #1

    Problems with display ST7735S and Teensy 4.0

    I've successfully connected display ST7735S to Teensy 4.0 this way:
    GND -> GND
    VCC -> 5V
    SCL -> SCK (13th pin)
    SDA -> MOSI (11th pin)
    RES -> 8th pin
    DC -> 9th pin
    CS -> CS (10th pin)

    However, there is no image on display; only backlight.
    I used a Teensy library (https://www.pjrc.com/teensy/td_libs_ST7735.html) especially written for this type of displays to be connected with Teensy.
    I used a following code: https://pastebin.com/Jd04eEL0
    https://thumbsnap.com/i/wqzH2Vp9.mp4

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,565
    Sorry would suggest using different library, my guess is that one is ancient as it talked about being optimized for Teensy 3.1...

    Two alternatives:
    Use the more current Adafruit library: You can either download it directly from their github:
    https://github.com/adafruit/Adafruit-ST7735-Library
    Or you can use the Adruino library manager for it.

    Or you can use the library that is installed with Teensyduino:
    https://github.com/PaulStoffregen/ST7735_t3

    Again the later one is included with the Teensyduino releases

  3. #3
    I've just tried both these libraries and it failed, unfortunately.
    Here's my code for the 1st (https://github.com/adafruit/Adafruit-ST7735-Library) library attempt: https://pastebin.com/SusB8YyW
    And here's for the 2nd: (https://github.com/PaulStoffregen/ST7735_t3): https://pastebin.com/F3mHtw6N

  4. #4
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,565
    Which Display are you using? It looks different than the Adafruit one. https://www.adafruit.com/product/3533

    I have played around with the Adafruit one, but it could be configured differently, that is the controller can handle so many pixels and this display only shows a portion of it, so the question may be what portion of memory does it use...

    It looks like a few of them that for example Amazon sells like: https://smile.amazon.com/dp/B09DT7X3MH/

    Ordered 2 from Ebay: That look same, ship from US so should be here within week...
    Last edited by KurtE; 08-28-2021 at 08:54 PM.

  5. #5
    In this case, as in other similar ones, you have to connect wire by wire again, you have to check the continuity to ensure that any of them is not broken.

    You also have to check the welds on the screen pins, sometimes there are traces of some protection wax that prevent the correct connections between the screen PCB and the pin strips. I don't have that screen on hand, but I have a TFT ST7735 with a touch panel, I have connected it to a teensy 4 and it works.

    Click image for larger version. 

Name:	ST7735.jpg 
Views:	10 
Size:	107.2 KB 
ID:	25705
    Library: ST7735_t3

  6. #6
    Yes, the display I am using looks the same way to which you ordered.

  7. #7
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,565
    Sorry I received the TFT from ebay and just soldered up the pins. and connected it up to a T4

    I loaded up Graphic test in the ST7735_t3 library.

    Edited it to say I am using
    #
    Code:
    define TFT_DC   9 
    #define TFT_CS   10  
    #define TFT_RST  8
    ...
    ST7735_t3 tft = ST7735_t3(TFT_CS, TFT_DC, TFT_RST);
    ...
    tft.initR(INITR_MINI160x80);
    And the graphic test appears to work fine for me on this display
    Click image for larger version. 

Name:	screenshot.jpg 
Views:	11 
Size:	106.4 KB 
ID:	25759

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •