Introduction - If you have any usage issues, please Google them yourself
STM8SLED routine use of HSI for the system clock source, and configure the appropriate divide ratio TIM2 CC2 output PWM signal control LD2 brightness TIM3 CC1 output PWM signal control LD3 flicker frequency TLI (PD7) interrupt is used to open/Close LD4.