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