STM32SingleSevenSegment To interface a single seven segment with STM32F103RB common cathode and common anode mode for the Standard Peripheral Library check out https://youtu.be/SBeIjHkj8rk for better description and to know about multiple segment interfacing