/*
ESP32 HTTPClient Jokes API Example
https://wokwi.com/projects/342032431249883731
Copyright (C) 2022, Uri Shaked
*/
#include <Adafruit_GFX.h>
#include <Adafruit_ILI9341.h>
#define BTN_PIN 5
#define TFT_DC 2
#define TFT_CS 15
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
long randNumber;
void setup() {
pinMode(BTN_PIN, INPUT_PULLUP);
tft.begin();
tft.setRotation(1);
tft.setTextColor(ILI9341_WHITE);
tft.setTextSize(2);
tft.print("PRESS FOR PAIN!");
randomSeed(analogRead(0));
}
void loop() {
if (digitalRead(BTN_PIN) == LOW) {
tft.fillScreen(ILI9341_BLACK);
tft.setCursor(0, 0);
randomSeed(analogRead(0));
randNumber = random(16);
tft.println("SELECTING!!");
switch (randNumber) {
case 0:
tft.println("Case 0: Boof.");
break;
case 1:
tft.println("Case 1: Harness yourself");
break;
case 2:
tft.println("Case 2: More try to get hard.");
break;
case 3:
tft.println("Case 3: Shave important parts. U know?!");
break;
case 4:
tft.println("Case 4: Medium glass.");
break;
case 5:
tft.println("Case 5: Put on gloves, lube.");
break;
case 6:
tft.println("Case 6: Extreme fucking thing right in there. Do it.?");
break;
case 7:
tft.println("Case 7:Shave everything. Now!");
break;
case 8:
tft.println("Case 8: Large glass. Now. Or else. moron.");
break;
case 9:
tft.println("Case 9: See how many gloved fingers fit.");
break;
case 10:
tft.println("Case 10: Nipple clamps. Tight..");
break;
case 11:
tft.println("Case 11: Do something stupid..");
break;
case 12:
tft.println("Case 12: Do something smart.");
break;
case 13:
tft.println("Case 13: Way more water. Cretin.");
break;
case 14:
tft.println("Case 14: Big plug. All the way. Lube it or whatever.");
break;
case 15:
tft.println("Case 15: Undo it all and re-spin.");
break;
case 16:
tft.println("Case 16: Start tomorrows plan.");
break;
case 17:
tft.println("Case 17: Start 'Decider 2' - The next version of this.");
break;
case 18:
tft.println("Case 18: Tie yourself up.");
break;
case 19:
tft.println("Case 19: Sniff some.");
break;
case 20:
tft.println("Case 20: Tie yourself up a lot.");
break;
default:
tft.println("Default: Spin Again.");
break;
}
}
delay(100);
}