2.4″ 240×320 SPI Touch ILI9341 3.3V

This is a notes post for future reference Description: Cheap eBay color LCD display Resolution: 240×320 Size: 2.4″ Driver: ILI9341 (Display), ads7843 compatible (Touch). Colors: 16bit Voltage: 3.3v or 5v (only tried 3.3) Libraries: SPI, Adafruit_ILI9341 (Display), UTouch (Touch). CODE: #include “SPI.h” #include “Adafruit_GFX.h” #include “Adafruit_ILI9341.h” #include <UTouch.h> #define TFT_CS 10 #define TFT_DC 9 Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC); UTouch  myTouch( 6, 5, 4, 3, 2); … void setup() { … tft.begin(); tft.setRotation(1); myTouch.InitTouch(); myTouch.setPrecision(PREC_MEDIUM); … Pins: Touch T_IRQ – pin 2 T_DO – pin 3 T_DIN – pin 4 T_CS – pin 5 T_CLK – pin 6 Display SDO(MISO) Continue Reading →