some basic example for stm32f1 series