public void StopPwm() { EnsurePinFunction(RpiV1Gpio.Port1Pin12, GpioFunction.Alt5); Pwm.SetMode(PwmChannel.Channel0, false, false); }
public void StartPwm() { EnsurePinFunction(RpiV1Gpio.Port1Pin12, GpioFunction.Alt5); Pwm.SetClock(PwmClockDivisor.Div16); Pwm.SetMode(PwmChannel.Channel0, true, true); }