ILI9341_T4
#define PIN_SCK 13 // mandatory
#define PIN_MISO 12 // mandatory (if the display has no MISO line, set this to 255 but then VSync will be disabled)
#define PIN_MOSI 11 // mandatory
#define PIN_DC 9 // mandatory, can be any pin but using pin 10 (or 36 or 37 on T4.1) provides greater performance
#define PIN_CS 10 // optional (but recommended), can be any pin.
#define PIN_RESET 6 // optional (but recommended), can be any pin. // XPT2046 TOUSCHSCREEN CONNECTED ON THE SAME SPI PORT AS ILI9341:
//
// -> connect T_DIN to the same Teensy pin as PIN_MOSI
// -> connect T_DO to the same Teensy pin as PIN_MISO
//
#define PIN_TOUCH_CS 4 // mandatory for this example, can be any pin
#define PIN_TOUCH_IRQ 3 // (optional) can be any digital pin with interrupt capabilities
Micropython SPI example
i.MXRT SPI Bus:
SPI bus