_TFT_ILI9163C_config.h 1.0 KB

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