In the following circuit when ESP01 is turned on; For about less than a second, the GPIO 2 output is activated and the transistor output is activated, and after the boot is completed, the outputs are cut off ...
Is there a way to prevent this from happening?
I want ESP01 boot normally without activated GPIO2 at the first ...
Note: GPIO2 must be pullup to boot
this is my code:
void setup() {
pinMode(2, OUTPUT);
digitalWrite(2, LOW);
}
void loop() {
digitalWrite(2, LOW);
delay(1000);
digitalWrite(2, HIGH);
delay(2000);
}