As mentioned SPI0 is faster than SPI1 and SPI2, but SPI1 and 2 are still very usable, as they still pretty well double buffer, so probably most of the time we can still keep things going pretty much at full speed.
As for example of how to use it with SPI1... The example program graphictest has a bunch of #define/#ifdef for different configurations including some for SPI1. Actually I believe there are two examples. One that uses normal pins and the other was setup to be able to use a MicroSD adapter that gave you access to the underlying pins, which you could then use for SPI1...
So for example if your defined the TFT object like:
Code:
#ifdef SPI1_DISP
#define TFT_DC 6 // 0xe4
#define TFT_CS 7 // 0xe5
#define TFT_SCK 32 //0xe2
#define TFT_MISO 1 // 0xe3
#define TFT_MOSI 0 // 0xe1
#define TFT_RESET 8
ILI9341_t3n tft = ILI9341_t3n(TFT_CS, TFT_DC, TFT_RESET, TFT_MOSI, TFT_SCK, TFT_MISO, &SPIN1);
#endif
It would use the SPI1 pins (SPIN1)... Note: the code was also setup that you could ignore specifying which SPIN object to use (SPIN1 -> SPI1), as the code will see that the pins specified were not valid for SPI and so it will check to see if they are valid for SPI1 and if not SPI2...
Other than than that init, same usage pattern.