Can you control the flash LED as a PWM on ESP32-CAM?

Is there a way to control the flash led on ESP32-CAM as pwm? For my project it is too bright.

The ESP32 itself offers a PWM controller (The LED control (LEDC) peripheral) which is primarily designed to control the intensity of LEDs. see LED Control (LEDC) — Arduino-ESP32 2.0.6 documentation or a tutorial here

The ESP32-CAM built-in LED (that can work as a flash) is internally connected to GPIO 4

Hi,
I use PWM on the flash in this sketch which may be of help/interest?

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.