/* This is a multi
line comment
it will be ignored
*/
// This is a single comment
int yellow = 13; // yellow is connected to pin 13
int green = 12; // green is connected to pin 12
int red = 11; // red is connected to pin 11
int buttonpin = 7; // button pin is connected to pin 7
void setup() {
pinMode(yellow, OUTPUT);
pinMode(green, OUTPUT);
pinMode(red, OUTPUT);
pinMode(buttonpin, INPUT_PULLUP);
}
void loop() {
int buttonVa1 = digitalRead(buttonpin);
if (buttonVa1 == LOW)
digitalWrite(yellow, HIGH);
digitalWrite(green, HIGH);
digitalWrite(red, HIGH);
} //end if
else
{}
digitalWrite(yellow, LOW);
digitalWrite(green, LOW);
digitalWrite(red, LOW);
}