int Switch=26;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(4, OUTPUT);
//
pinMode((Switch, INPUT);
}
void loop() {
//int a=digitalRead(Switch)
Serial.println(a);
if(a==1){
digitalWrite(4, HIGH);
delay(1000);
digitalWrite(4, LOW);
delay(1000);
}
else{
digitalWrite(4, LOW);
}
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}