int bump1=0;
void setup() {
pinMode(12,INPUT);
pinMode(11,OUTPUT);
pinMode(10,OUTPUT);
pinMode(9,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(11,LOW);
digitalWrite(10,LOW);
digitalWrite(9,LOW);
bump1=digitalRead(12);
while(bump1== LOW)
{
digitalWrite(11,HIGH);
digitalWrite(10,HIGH);
digitalWrite(9,HIGH);
bump1=digitalRead(12);
}
digitalWrite(11,HIGH);
digitalWrite(10,LOW);
digitalWrite(9,LOW);
delay(1000);
digitalWrite(11,LOW);
digitalWrite(10,HIGH);
digitalWrite(9,LOW);
delay(1000);
digitalWrite(11,LOW);
digitalWrite(10,LOW);
digitalWrite(9,HIGH);
delay(1000);
}