Install Adafruit_ST7735 library with te Library Manager.
Edit the example graphictest.ino for your 9:28 wiring:
Note that I have put RES on a proper GPIO pin (5)
#define TFT_CS 6
#define TFT_RST 5 // you can also connect this to the Arduino reset
// in which case, set this #define pin to 0!
#define TFT_DC 7
// Option 2: use any pins but a little slower!
#define TFT_SCLK 9 // set these to be whatever pins you like!
#define TFT_MOSI 11 // set these to be whatever pins you like!
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
Edit the example graphictest.ino for your 9:32 wiring:
Note that I have put RES on a proper GPIO pin (5)
#define TFT_CS 10
#define TFT_RST 5 // you can also connect this to the Arduino reset
// in which case, set this #define pin to 0!
#define TFT_DC 8
// Option 2: use any pins but a little slower!
#define TFT_SCLK 12 // set these to be whatever pins you like!
#define TFT_MOSI 11 // set these to be whatever pins you like!
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
Edit the example graphictest.ino for more sensible wiring:
Note that I have put RES on a proper GPIO pin (5)
#define TFT_CS 6 //CS
#define TFT_RST 5 //RES
#define TFT_DC 7 //DC
// Option 2: use any pins but a little slower!
#define TFT_SCLK 9 // SCL
#define TFT_MOSI 8 // SDA
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_MOSI, TFT_SCLK, TFT_RST);
If you change to the "more sensible wiring", you could use the hardware SPI constructor:
// Option 1 (recommended): must use the hardware SPI pins
// to use the microSD card (see the image drawing example)
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
I have every sympathy for you. The clever Chinese have chosen to use un-intuitive names for the pins. The World Convention is SCK for SPI Clock Input and MOSI for SPI Data Input
SCL, SDA normally refer to the I2C bus.
David.