#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#define TFT_DC 2
#define TFT_CS 15
#define skip 25
#define next 27
#define yes 26
#define no 14
#define dispense 13
int pos = 0; // variable to store the servo position
// Recommended PWM GPIO pins on the ESP32 include 2,4,12-19,21-23,25-27,32-33
int servoPin = 33;
void setup() {
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
tft.begin();
// Meme reference: https://english.stackexchange.com/questions/20356/origin-of-i-can-haz
}
void loop() {
options();
}
void options(){
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
tft.begin();
tft.setTextSize(2);
//tft.fillScreen(ILI9341_BLACK);
tft.setCursor(5,200);
tft.setTextColor(ILI9341_RED);
tft.println("Yes");
tft.setCursor(180,200);
tft.setTextColor(ILI9341_WHITE);
//tft.setTextSize(3);
tft.println("No");
tft.setCursor(5,270);
tft.setTextColor(ILI9341_BLUE);
//tft.setTextSize(3);
tft.println("Skip");
tft.setCursor(180,270);
tft.setTextColor(ILI9341_YELLOW);
//tft.setTextSize(3);
tft.println("Next");
delay(500);
tft.fillScreen(ILI9341_BLACK);
}
/*void frontScreen(){
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
tft.begin();
tft.fillScreen(ILI9341_BLACK);
tft.setCursor(26, 120);
tft.setTextColor(ILI9341_BLUE);
tft.setTextSize(3);
tft.println("Nameesta");
tft.setCursor(20, 160);
tft.setTextColor(ILI9341_WHITE);
tft.setTextSize(2);
tft.println("hello");
delay(500);
}*/