Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Adafruit_GFX.h>
- #include <SPI.h>
- #include <Wire.h>
- #include <Adafruit_ILI9341.h>
- #include <Adafruit_STMPE610.h>
- #include <Adafruit_ILI9341.h>
- #include "dragon.h"
- #define TFT_DC 9
- #define TFT_CS 10
- Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
- void setup() {
- tft.begin();
- tft.setRotation(1);
- tft.fillScreen(ILI9341_BLACK);
- tft.setCursor(100, 240);
- tft.drawRGBBitmap(100, 110,
- #if defined(__AVR__) || defined(ESP8266)
- dragonBitmap,
- #else
- (uint16_t *)dragonBitmap,
- #endif
- DRAGON_WIDTH, DRAGON_HEIGHT);
- }
- void loop(void) {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement