int bt;
void setup() {
// put your setup code here, to run once:
pinMode(13, OUTPUT);
pinMode(5, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
bt=digitalRead(5);
if(bt==1){
digitalWrite(13,HIGH);
delay(200);
digitalWrite(13, LOW);
delay(200);
}else{
digitalWrite(13,HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
}
}