In this video I use STM32F103R6 ARM Cortex-M3 to interface with a common anode multiplexing display and a push button. I use STM32CubeIDE to write this example program.
For more information:
https://diy-instruments.blogspot.com/2020/09/STM32F103R6 Simple 2-Digit Multiplexing Display And Switch Example.html