int Led1 = 12;
int Led2 = 13;
int But1 = 6;
int But2 = 7;
void setup() {
// put your setup code here, to run once:
pinMode(Led1, OUTPUT);
pinMode(Led2, OUTPUT);
pinMode(But1, INPUT);
pinMode(But2, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int Status1 = digitalRead(But1);
int Status2 = digitalRead(But2);
if (Status1 == HIGH)
{
digitalWrite(Led1, HIGH);
}
else
{
digitalWrite(Led1, LOW);
}
if(Status2 == HIGH)
{
digitalWrite(Led2, HIGH);
}
else
{
digitalWrite(Led2, LOW);
}
}