microcontrollerslab.com
ESP32 PWM with Arduino IDE - LED fading example
Tutorial on how to generate pwm signal with ESP32, pulse width modulation signal of fix and variable duty cycle and led dimming example