Characteristic | Locus |
---|---|
Inheritance | System.Object ServoBase AngularServoBase > Servo |
Implements | IAngularServo IServo |
Inherited Members | AngularServoBase.Angle AngularServoBase.RotateTo(Angle, Boolean) AngularServoBase.CalculatePulseDuration(Angle) ServoBase.PwmPort ServoBase.Config ServoBase.Stop() ServoBase.CalculateDutyCycle(Single) ServoBase.SendCommandPulse(Single) |
Namespace | Meadow.Foundation.Servos |
Assembly | ServoCore.dll |
Syntax
public class Servo : AngularServoBase, IAngularServo, IServo
Constructors
Servo(IPin, ServoConfig)
Create a new Servo object
Declaration
public Servo(IPin pwmPin, ServoConfig config)
Parameters
Type | Name | Description |
---|---|---|
IPin | pwmPin | The PWM pin |
ServoConfig | config | The servo configuration |
Servo(IPwmPort, ServoConfig)
Create a new Servo object
Declaration
public Servo(IPwmPort pwmPort, ServoConfig config)
Parameters
Type | Name | Description |
---|---|---|
IPwmPort | pwmPort | The port for the PWM pin |
ServoConfig | config | The servo configuration |