void setup()
{
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
pinMode(8, OUTPUT);
pinMode(7, OUTPUT);
pinMode(1, INPUT);
pinMode(2, INPUT);
pinMode(3, INPUT);
}
void loop()
{
int button1 = digitalRead(1);
int button2 = digitalRead(2);
int button3 = digitalRead(3);
if (button1 == HIGH)
{
digitalWrite(13, HIGH);
digitalWrite(7, HIGH);
digitalWrite(12, LOW);
digitalWrite(8, LOW);
}
if (button2 == HIGH)
{
digitalWrite(13, LOW);
digitalWrite(7, LOW);
digitalWrite(12, HIGH);
digitalWrite(8,HIGH);
}
if (button3 == HIGH)
{
digitalWrite(13, LOW);
digitalWrite(7, LOW);
digitalWrite(12, LOW);
digitalWrite(8,LOW);
}
}