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