`//header
//define variables and constants
int switchState = 0;
//setup
// the setup routine runs once when you press reset:
void setup(){
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);
pinMode(2,INPUT);}
void loop(){
switchState = digitalRead(2);
if(switchState == LOW);
digitalWrite(3, HIGH);
digitalWrite(4, LOW);
digitalWrite(5, LOW);
}
else{
digitalWrite(3, LOW);
digitalWrite(4, LOW);
digitalWrite(5, HIGH);
digitalWrite(4, HIGH);
digitalWrite(5, LOW);
delay (250);
}`
Can somebody help? Gone through a few forums already but nothing works.