配置函數(shù)

我要報(bào)錯
  • STM32 4路PWM配置函數(shù)

    硬件連接:戰(zhàn)艦STM32F103ZET6或其他實(shí)驗(yàn)?zāi)繕?biāo):通過調(diào)制占空比調(diào)節(jié)多路PWM控制LED的明暗;#include "pwm.h"#include "led.h"//PWM輸出初始化//arr:自動重裝值//psc:時(shí)鐘預(yù)分頻數(shù)void TIM3_PWM_Init(u16 arr,u16 psc