Пример #1
0
 public void StopPwm()
 {
     EnsurePinFunction(RpiV1Gpio.Port1Pin12, GpioFunction.Alt5);
     Pwm.SetMode(PwmChannel.Channel0, false, false);
 }
Пример #2
0
 public void StartPwm()
 {
     EnsurePinFunction(RpiV1Gpio.Port1Pin12, GpioFunction.Alt5);
     Pwm.SetClock(PwmClockDivisor.Div16);
     Pwm.SetMode(PwmChannel.Channel0, true, true);
 }