This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2642 PWM的使用



您好,我是用的是CC2642的板子,使用的SDK版本为simplelink_cc13x2_26x2_sdk_3_40_00_02,我看了SDK下面的PWMLED2的例子,那个例子是实现一个呼吸灯的例子,但我怎么修改都无法修改成使用PWM控制LED灯,使它点亮后亮一秒之后灭一秒之后再点亮这样的频率,我知道通过定时器也可以实现同样的功能,但我就想通过PWM来实现所以想请教一下:

params.dutyUnits 
params.dutyValue 
params.periodUnits 
params.periodValue 

这几个参数如何设置才能达到我想要的效果呢?