未验证 提交 41b58736 编写于 作者: A Andrew Phelps 提交者: GitHub

Merge pull request #97 from anphel31/fixpwmoutput

fix PWM output by changing duty cycle after starting pin output
......@@ -28,6 +28,8 @@ namespace System.Device.Pwm.Drivers
{
this.ChangeDutyCycle(dutyCyclePercentage);
_winPin?.Start();
// This extra call is required to generate PWM output - remove when the underlying issue is fixed. See issue #109
this.ChangeDutyCycle(dutyCyclePercentage);
}
public void Stop()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册