private void btnPwmStart_Click1(object sender, RoutedEventArgs e) { if (gpioController == null || pwmControllers == null) { return; } var desiredFrequency1 = double.Parse(tbPWMFrequency1.Text); var desiredDutyCycle1 = double.Parse(tbPWMDutyCycle1.Text); LeftMotor.Start(desiredFrequency1, desiredDutyCycle1); }
private void turn_right() { if (gpioController == null || pwmControllers == null) { return; } LeftMotor.Start(1000, 0.4); RightMotor.Stop(); }