This application note describes a digital constant-current LED controller based on STM8S208X, which can be used for LED streetlighting platforms. The controller implements real average current control for LEDs using a digital approach, offering low energy consumption and good performance.