void setup() {
pinMode(13, OUTPUT);
pinMode(6, OUTPUT);
pinMode(11, OUTPUT);
pinMode(9, OUTPUT);
pinMode(7, INPUT_PULLUP);
}
void loop() {
int b = digitalRead(7);
if(b == LOW){
digitalWrite(13, HIGH);
digitalWrite(6, HIGH);
digitalWrite(11, HIGH);
digitalWrite(9, HIGH);
}
else{
digitalWrite(6, LOW);
digitalWrite(13, LOW);
digitalWrite(11, LOW);
digitalWrite(9, LOW);
}
}