I recently bought this 2" display from Aliexpress. It has 7 pins and the display is supposedly an SPI interface but the active pins are labelled SCL, SDA, RST DC,CS. which look more like pins from an I2C display. I want to use it on a Nano. Can anyone convert the MISO,MOSI,SS to the corresponding pins on the display
I know this was very frustrating since very little information was provided. So I used a basic TFT library from adafruit for st7789 - I used xiao esp32c3 - and based on the pin-out I mapped the corresponding I2C to SPI pin layout, e.g SDA to my esp32-MOSI pin, SCL to SCLK, CS to my SS , and the other pins you define accordingly.
This was my layout
#define TFT_CS 20
#define TFT_RST 5
#define TFT_DC 21
#define TFT_MOSI 10
#define TFT_SCLK 8
Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
good luck.
I am glad to see our product has been discussed on the forum. I'm delighted that it's generating interest. While I might not have the technical solution you're looking for at the moment, I'm here to assist you in any way I can. If you still have questions or need support, please feel free to reach out.
gmt020-02
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.