void setup() {
// put your setup code here, to run once:
for(int i=9;i<11;i++)
{
pinMode(i, OUTPUT);
}
for(int j=2;j<5;j++)
{
pinMode(j, INPUT_PULLUP);
}
}
void loop() {
// put your main code here, to run repeatedly:
int value=digitalRead(2);
int value=digitalRead(3);
int value=digitalRead(4);
if(value==LOW)
{
digitalWrite(9,HIGH);
delay(1000);
digitalWrite(9,LOW);
}else if(value1==LOW)
{
digitalWrite(10,HIGH);
delay(1000);
digitalWrite(10,LOW);
}else if(value2==LOW)
{
digitalWrite(11,HIGH);
delay(1000);
digitalWrite(11,LOW);
}
}