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

Thread: 4.0 vs 3.2 with Adafruit 1.3" 240.x240

  1. #1
    Junior Member
    Join Date
    Sep 2020
    Posts
    6

    4.0 vs 3.2 with Adafruit 1.3" 240.x240

    Hello - I want to replace 3.2 with 4.0 Have the Adafruit 1.3" display (st7789_t3) link

    https://smile.amazon.com/MakerFocus-...BX3ZQCQQ33DVT5

    It was working on 3.2 but I am getting a blank screen on 4.0 - tried the graphicstest example sketch.

    #define TFT_MISO 12
    #define TFT_MOSI 11 //a12
    #define TFT_SCK 13 //a13
    #define TFT_DC 9
    #define TFT_CS -1
    #define TFT_RST 8
    ...
    ST7789_t3 tft = ST7789_t3(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCK, TFT_RST);
    ...
    tft.init(240, 240, SPI_MODE2);

    I am NOT using SD card etc - just teensy and the display.Any clues ?

    Sandip

  2. #2
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    8,499
    Sorry you confused me with saying you have an Adafruit display, but then noticed you have set CS=-1, where as you actually have a MakerFocus

    I have 2 of them which have worked with T4. So it should work. See the thread: https://forum.pjrc.com/threads/57015...without-CS-pin

    So I would double check the wiring and the like.

  3. #3
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,544
    I've just got one of that type of display working today. I think part of your problem might be that you use ST7789_t3 when you are using the T4?
    The only graphics includes I use are:
    Code:
    #include <Adafruit_GFX.h>    // Core graphics library
    #include <Adafruit_ST7789.h> // Hardware-specific library
    and you might find it works better using initialization for hardware SPI:
    Code:
    Adafruit_ST7789 tft = Adafruit_ST7789(mand_cs, mand_dc, mand_rst);
    I used the same init().

    Pete

  4. #4
    Junior Member
    Join Date
    Sep 2020
    Posts
    6
    My code and display worked for T3.2 struggling with T4.

    I checked the wiring - it looks ok - the screen has power but is black.

    Did you use the makerfocus display and it worked?

    Do I need to connect the SCL on 14 instead of 13?
    For t3.2 SCK worked on 13 and 14 with relevant assignment in the code, just wondering.

  5. #5
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    7,988
    I used a noname st7789 on the t4, with the _t3 library. Had no issues, but I had to use "SPI_MODE2".

Posting Permissions

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