/*
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, 50, 50, ILI9341_GREEN);
delay(1000);
}