Advertisement
nikolas77

bitmap

Aug 24th, 2020
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <Adafruit_GFX.h>
  2. #include <SPI.h>
  3. #include <Wire.h>
  4. #include <Adafruit_ILI9341.h>
  5. #include <Adafruit_STMPE610.h>
  6. #include <Adafruit_ILI9341.h>
  7. #include "dragon.h"
  8.  
  9. #define TFT_DC 9
  10. #define TFT_CS 10
  11.  
  12. Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
  13.  
  14. void setup() {
  15.   tft.begin();
  16.   tft.setRotation(1);
  17.   tft.fillScreen(ILI9341_BLACK);
  18.   tft.setCursor(100, 240);
  19.  
  20.       tft.drawRGBBitmap(100, 110,
  21.      
  22. #if defined(__AVR__) || defined(ESP8266)
  23.         dragonBitmap,
  24. #else
  25.        
  26.         (uint16_t *)dragonBitmap,
  27. #endif
  28.         DRAGON_WIDTH, DRAGON_HEIGHT);
  29. }
  30.  
  31. void loop(void) {
  32.  
  33.  
  34.  
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement