/*
  ESP32 HTTPClient Jokes API Example

  https://wokwi.com/projects/342032431249883731

  Copyright (C) 2022, Uri Shaked
*/
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#include <vector>
std::vector<int> V1 = {1,2,3,4,5,6};
#define TFT_DC 2
#define TFT_CS 15
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
void setup() {  
  tft.begin(); 
}
void loop() {
  int cx = tft.width()  / 2;
  int cy = tft.height() / 2;
  tft.fillScreen(ILI9341_BLACK);
  tft.print("Size of Vector = ");
  tft.print(V1.size());
  //tft.drawRect(cx, cy, 20, 20, ILI9341_GREEN);
  tft.drawLine(20,20,0,0,ILI9341_GREEN);
  delay(1000);
  tft.drawLine(40,40,20,20,ILI9341_GREEN);
  delay(1000);
  tft.drawLine(60,60,40,40,ILI9341_GREEN);
  delay(1000);
  tft.drawLine(80,80,60,60,ILI9341_GREEN);
  delay(1000);
  tft.drawLine(100,100,80,80,ILI9341_GREEN);
  delay(1000);
  tft.drawLine(120,120,100,100,ILI9341_GREEN);
  delay(1000);
  tft.drawLine(140,140,120,120,ILI9341_GREEN);
  delay(1000);
  tft.drawLine(160,160,140,140,ILI9341_GREEN);
  delay(1000);
  tft.drawLine(180,180,160,160,ILI9341_GREEN);
  delay(1000);
  tft.drawLine(200,200,180,180,ILI9341_GREEN);
  delay(1000);
}
esp:VIN
esp:GND.2
esp:D13
esp:D12
esp:D14
esp:D27
esp:D26
esp:D25
esp:D33
esp:D32
esp:D35
esp:D34
esp:VN
esp:VP
esp:EN
esp:3V3
esp:GND.1
esp:D15
esp:D2
esp:D4
esp:RX2
esp:TX2
esp:D5
esp:D18
esp:D19
esp:D21
esp:RX0
esp:TX0
esp:D22
esp:D23
lcd1:VCC
lcd1:GND
lcd1:CS
lcd1:RST
lcd1:D/C
lcd1:MOSI
lcd1:SCK
lcd1:LED
lcd1:MISO
btn1:1.l
btn1:2.l
btn1:1.r
btn1:2.r