#include <LiquidCrystal.h>
LiquidCrystal lcd (12,11,10,9,8,7);
void setup() {
pinMode(6, INPUT);
pinMode(5, INPUT);
lcd.begin (16,2);
}
void loop() {
int B=digitalRead(6);
int P=digitalRead(5);
if (B==HIGH){
lcd.setCursor (1,0);
lcd.print ("1");
}
if (P==HIGH){
lcd.setCursor (1,0);
lcd.print ("2");
}
}