ILI9340

Used in the Adafruit 2.2" displays the ILI9340 communicates using SPI. As with all the SPI interfaces in DisplayCore the driver is optimized to use the DSPI library. The normal Register Select pin on these displays is instead called the D/C pin (Data / Command).

#include <ILI9340.h>
#include <DSPI.h>

// SPI channel 0, CS = 8, RS (AKA D/C) = 9, RESET = 10
DSPI0 spi;
ILI9340 tft(spi, 8, 9, 10);