01-22-2024, 05:57 PM
digitalWrite(BEEP, true) doesn't solve the problem.
it's seams that WiFi.begin modify several times the pin 2 even any PinMode or digitalWrite instruction.
it's like a "feature" of the ESP32.
The solution I find is AFTER the wifi got an Ip, do the pinmode and digitalWrite for the pin 2.
it's seams that WiFi.begin modify several times the pin 2 even any PinMode or digitalWrite instruction.
it's like a "feature" of the ESP32.
The solution I find is AFTER the wifi got an Ip, do the pinmode and digitalWrite for the pin 2.