Follow his link (the TFT link in reply #2). There you will see " SPI users, we have a library as well". Click on that. It will take you to the GIT page of the library.
Install that library. How to install a library. Install the library using the library manager if possible.
Click on Examples. Then in the examples open the graphicstest.ino example.
Determine which pins are not used by the motor shield that can be used for the TFT.
You will see in the top of the file:
// These are 'flexible' lines that can be changed
#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST 8 // RST can be set to -1 if you tie it to Arduino's reset
To those defines add defines for MOSI, SCK, MISO and set the pins that you want to use for the SPI pins.
Change the TFT_ CS, TFT_DC, TFT_RST pins if necesary.
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
Adafruit_HX8357 tft = Adafruit_HX8357(TFT_CS, TFT_DC, TFT_RST);
// SoftSPI - note that on some processors this might be *faster* than hardware SPI!
//Adafruit_HX8357 tft = Adafruit_HX8357(TFT_CS, TFT_DC, MOSI, SCK, TFT_RST, MISO);
Comment the hardware SPI line and uncomment the soft SPI line:
// Use hardware SPI (on Uno, #13, #12, #11) and the above for CS/DC
//Adafruit_HX8357 tft = Adafruit_HX8357(TFT_CS, TFT_DC, TFT_RST);
// SoftSPI - note that on some processors this might be *faster* than hardware SPI!
Adafruit_HX8357 tft = Adafruit_HX8357(TFT_CS, TFT_DC, MOSI, SCK, TFT_RST, MISO);
Load and run the example. Did it work?
That is how to set up for soft SPI. Use those defines and constructor in your code.