Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <Adafruit_GFX.h>    // Core graphics library
  2. #include <Adafruit_TFTLCD.h> // Hardware-specific library
  3.  
  4. #define LCD_CS A3 //
  5. #define LCD_CD A2 //
  6. #define LCD_WR A1 //
  7. #define LCD_RD A0 //
  8. #define LCD_RESET A4 //
  9.  
  10. #define  BLACK   0x0000
  11. #define  BLUE    0x001F
  12. #define  RED     0xF800
  13. #define  GREEN   0x07E0
  14. #define  CYAN    0x07FF
  15. #define MAGENTA 0xF81F
  16. #define YELLOW  0xFFE0
  17. #define WHITE   0xFFFF
  18.  
  19. Adafruit_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET);
  20.  
  21. void setup(void) {
  22.  
  23.   tft.reset();
  24.   tft.begin(0x9341);
  25.  
  26.  
  27. }
  28.  
  29. void loop(void) {
  30.  
  31. tft.fillScreen(BLUE); //
  32. }