Пример #1
0
 /// <summary>
 /// speed in percent for motor 2
 /// </summary>
 public void Motor2Speed(double speedPercent)
 {
     if (Motor2Available)
     {
         if (GetPCA9685 != null)
         {
             GetPCA9685.SetPulseParameters(ENB, GetSpeed(speedPercent));
         }
     }
 }
Пример #2
0
 private void StopMotor2()
 {
     if (Motor2Available)
     {
         SetGPIOWrite2(0, 0);
         if (GetPCA9685 != null)
         {
             GetPCA9685.SetPulseParameters(ENB, 0);
         }
     }
 }