Edit

Share via


ServoMotor(PwmChannel, Double, Double, Double) Constructor

Definition

Initializes a new instance of the ServoMotor class.

public ServoMotor (System.Device.Pwm.PwmChannel pwmChannel, double maximumAngle = 180, double minimumPulseWidthMicroseconds = 1000, double maximumPulseWidthMicroseconds = 2000);
new Iot.Device.ServoMotor.ServoMotor : System.Device.Pwm.PwmChannel * double * double * double -> Iot.Device.ServoMotor.ServoMotor
Public Sub New (pwmChannel As PwmChannel, Optional maximumAngle As Double = 180, Optional minimumPulseWidthMicroseconds As Double = 1000, Optional maximumPulseWidthMicroseconds As Double = 2000)

Parameters

pwmChannel
PwmChannel

The PWM channel used to control the servo motor.

maximumAngle
Double

The maximum angle the servo motor can move represented as a value between 0 and 360.

minimumPulseWidthMicroseconds
Double

The minimum pulse width, in microseconds, that represent an angle for 0 degrees.

maximumPulseWidthMicroseconds
Double

The maxnimum pulse width, in microseconds, that represent an angle for maximum angle.

Applies to