This application note provides a short description of how to use the ADC, Timer and GPIO peripherals to display a variable voltage on a bar of LEDs. It introduces the main features of the STM8S-DISCOVERY development board and provides information on hardware requirements, application principle, and software description.