TFT_ILI9163C..h 803 B

12345678910111213141516171819202122
  1. //#define TFT_ILI9163C_CSpin __CSpin // 53 // 10 // chip select
  2. #define TFT_ILI9163C_CSpin 7 // __CSpin // 53 // 10 // chip select
  3. #define TFT_ILI9163C_DCpin 8 // A0 data/command pin. sometimes called DC, RS, ...
  4. #define TFT_ILI9163C__RSTpin 9 //reset pin. you must connect. (or pullup)
  5. //#define __SDA 51 //11 //+ bidirectional data pin. Connect to MOSI
  6. //#define __SCK 52 //13 //+ clock. sometimes called SCLK, SCL, ...
  7. // Color definitions
  8. #define BLACK 0x0000
  9. #define BLUE 0x001F
  10. #define RED 0xF800
  11. #define GREEN 0x07E0
  12. #define CYAN 0x07FF
  13. #define MAGENTA 0xF81F
  14. #define YELLOW 0xFFE0
  15. #define WHITE 0xFFFF
  16. TFT_ILI9163C display = TFT_ILI9163C(TFT_ILI9163C_CSpin, TFT_ILI9163C_DCpin, TFT_ILI9163C__RSTpin);
  17. float p = 3.1415926;