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.   tft.fillScreen(BLUE);
  27.   tft.setTextColor(WHITE);
  28.   tft.setCursor(38,30);
  29.   tft.setTextSize(3);
  30.   tft.print("PTshop.cz");
  31.   tft.setCursor(5,80);
  32.   tft.setTextSize(2);
  33.   tft.print("arduino8.webnode.cz");
  34.  
  35. }
  36.  
  37. void loop(void) {
  38.  
  39.  
  40. }