After PWM ledcWrite GPIO is blocked for normal IO-use

sailaway
Posts: 4
Joined: Thu Mar 12, 2020 12:32 pm

After PWM ledcWrite GPIO is blocked for normal IO-use

Postby sailaway » Thu Mar 26, 2020 8:15 pm

Hi!
The "Ai Thinker ESP32-CAM" board uses GPIO_4 to control the flash-LED.
I use PWM to dim the flash-LED to less brightnes for some time: ledcWrite(channel, dutycycle)
This works fine.

After that I want to switch on the flash-LED by digitalWrite(GPIO_4, LOW) and to switch off by digitalWrite(GPIO_4, HIGH)
Normaly this works fine.
But after using PWM on GPIO_4 (like described above) it does NOT.

I cannot find any hint that PWM should be finished with a special command so that GPIO_4 is ready for normal IO-use.

Who is online

Users browsing this forum: No registered users and 45 guests