due to limitation of our available micro controller we have limited value that can be use on the pin like IN1 where is connected to pin 0 we can only give the pin 0 a High value, if we try to give it low value it make the micro controller to malfunction.
next we going to code the stop function void stopm() { digitalWrite(IN1, HIGH); digitalWrite(IN2,HIGH); digitalWrite(IN3,HIGH); digitalWrite(IN4, HIGH);
} now we are going to code the command we want to run once the controller is turn on
WiFi.mode(WIFI_OFF); //turn off WIFI stopm(); pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, LOW); } here are the command we want to be executed until the controller is on off