User Manual
Repeat the search and install steps, looking for the Adafruit Zero DMA, Adafruit ST7735 and ST7789, Adafruit
SPIFlash, and SdFat - Adafruit Fork libraries.
After restarting the Arduino software, you should see a new example folder called Adafruit_ST7735, and inside, an
example called graphicstest.
Since this example is written for several displays, there are two changes we need to make in order to use it with the
2.0" display.
First, in the graphicstest source code, look for the lines as follows:
comment out the first line, and uncomment the second, so it looks like:
// For 1.44" and 1.8" TFT with ST7735 (including HalloWing) use:
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
// For 1.3", 1.54", and 2.0" TFT with ST7789:
//Adafruit_ST7789 tft = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST);
© Adafruit Industries https://learn.adafruit.com/2-0-inch-320-x-240-color-ips-tft-display Page 9 of 27