#define TFT_ILI9163C_CSpin 7 // __CSpin // 53 // 10 // chip select #define TFT_ILI9163C_DCpin 8 // A0 data/command pin. sometimes called DC, RS, ... #define TFT_ILI9163C__RSTpin 9 //reset pin. you must connect. (or pullup) //#define __SDA 51 //11 //+ bidirectional data pin. Connect to MOSI //#define __SCK 52 //13 //+ clock. sometimes called SCLK, SCL, ... //#define __144_RED_PCB__ #define __144_BLACK_PCB__ //#define __22_RED_PCB__ #define _TFTWIDTH 128//the REAL W resolution of the TFT #define _TFTHEIGHT 128//the REAL H resolution of the TFT #define _GRAMWIDTH 128 #define _GRAMHEIGH 160//Heh? Yes! My display uses offset! #define _GRAMSIZE _GRAMWIDTH * _GRAMHEIGH // #define __COLORSPC 1// 1:GBR - 0:RGB #define __GAMMASET3 //uncomment for another gamma (1,2,3) #define __OFFSET 32//this is the offset of my display, 160 - 128 = 32 //#define __OFFSET 0//this is the offset of my display, 160 - 128 = 32 #include #include #include