The algorithm in this microcontroller design drives an LED matrix and provides digital-voltage-readout and bar-like dot displays, showing dots for a graphical output if the input value is changing, and switching automatically to displaying a numeric value when the input voltage is stable.