/*
ESP32 HTTPClient Jokes API Example
https://wokwi.com/projects/342032431249883731
Copyright (C) 2022, Uri Shaked
*/
#include "SPI.h"
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#include "dragon.h"
const char* ssid = "Wokwi-GUEST";
const char* password = "";
#define BTN_PIN 5
#define TFT_DC 2
#define TFT_CS 15
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
void setup() {
pinMode(BTN_PIN, INPUT_PULLUP);
tft.setRotation(1);
tft.begin();
tft.fillScreen(ILI9341_BLACK);
tft.drawRGBBitmap(50,50, (uint16_t *)dragonBitmap,DRAGON_WIDTH, DRAGON_HEIGHT);
}
void loop(void) {
if (digitalRead(BTN_PIN) == LOW) {
tft.setCursor(0, 0);
tft.println("Merhaba");
}
}