//The code:

include

LiquidCrystal lcd(8, 9, 4, 5, 6, 7); int readkey; void setup() { lcd.begin(16, 2); lcd.print("Joke? Y(up)/N(down)"); } void loop() { lcd.setCursor(0, 1); lcd.print("R/L == punchline"); readkey=analogRead(0); if (readkey<50) { lcd.clear(); lcd.print("writes inverse"); } else if(readkey<195) { lcd.clear(); lcd.print("A backwards poet..."); lcd.print("Click right"); } else if(readkey<380) { lcd.clear(); lcd.print("Oh come on"); } else if(readkey<790) { lcd.clear(); lcd.print("esrevni setirw"); } }

Built With

  • arduino
  • arduino-uno
  • lcd-keypad-shield
Share this project:

Updates