This application note provides a detailed description of LED dimming implemented on the STM32 microcontroller in combination with the STP24DP05 LED driver. It describes the general principles of LED dimming, with a focus on the use of pulse width modulation (PWM) for digital dimming, and compares the most common design approaches. The conclusion helps developers choose the best approach for their LED dimming application.