#define btnR 35
#define btnA 34
#define btnV 32
#define ledA 23
#define ledR 22
#define ledV 21
void setup() {
pinMode(ledA,OUTPUT);
pinMode(ledR,OUTPUT);
pinMode(ledV,OUTPUT);
pinMode(btnR,INPUT);
pinMode(btnA,INPUT);
pinMode(btnV,INPUT);
}
void loop() {
if( digitalRead(btnR) == HIGH){
digitalWrite(ledR,HIGH);
}
else{
digitalWrite(ledR,LOW);
}
if( digitalRead(btnV) == HIGH){
digitalWrite(ledV,HIGH);
}
else{
digitalWrite(ledV,LOW);
}
if( digitalRead(btnA) == HIGH){
digitalWrite(ledA,HIGH);
}
else{
digitalWrite(ledA,LOW);
}
}