#include <LiquidCrystal_I2C.h>
#define LCD_ADDR 0x27
#define LCD_COLUMNS 16
#define LCD_ROWS 2
int button = 4;
int button2 =7;
LiquidCrystal_I2C lcd(LCD_ADDR, LCD_COLUMNS, LCD_ROWS);
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
lcd.init();
lcd.backlight();
pinMode(button, INPUT);
pinMode(button2, INPUT);
lcd.setCursor(0,0);
lcd.print("who's your best");
lcd.setCursor(0,1);
lcd.print("Friend");
delay(2000);
lcd.clear();
lcd.print("Choose wisely");
delay(1300);
lcd.setCursor(0,0);
lcd.print("Black = Peter");
lcd.setCursor(0,1);
lcd.print("Green = Henok");
}
void loop() {
// put your main code here, to run repeatedly:
int buttonstate = digitalRead(button) ;
int buttonstate2 = digitalRead(button2);
if(buttonstate == HIGH){
lcd.clear();
lcd.print("Petros you have ");
lcd.setCursor(0,1);
lcd.print("been chosen");
/*lcd.clear();*/
}
else if(buttonstate2 == HIGH){
lcd.clear();
lcd.print("This is a scumm");
}
}