/*
  ESP32 + ILI9341 LCD Basic Example

  https://wokwi.com/projects/325324981270479442
*/

#include <WiFi.h>
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"

const char* ssid = "Wokwi-GUEST";
const char* password = "";

#define TFT_DC 2
#define TFT_CS 15
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);

void setup() {
  tft.begin();
  Serial.begin(115200);
  WiFi.begin(ssid, password, 6);
  tft.setRotation(1);

  tft.setTextColor(ILI9341_WHITE);
  tft.setTextSize(2);
  tft.print("Connecting to WiFi");

  while (WiFi.status() != WL_CONNECTED) {
    delay(100);
    tft.print(".");
  }
 tft.print("\nOK! IP=");
  tft.println(WiFi.localIP());
}

void loop() {
  

  
  
  
  }