The HobbyServo library is used to control small DC servos that use pulse-width control.
More...
The HobbyServo library is used to control small DC servos that use pulse-width control.
◆ HobbyServo()
| HobbyServo |
( |
Pwm |
pwm, |
|
|
double |
minPulseWidth = 500, |
|
|
double |
maxPulseWidth = 2500 |
|
) |
| |
Construct a hobby servo motor
- Parameters
-
| pwm | The PWM module to use |
| minPulseWidth | The minimum pulse width, in microseconds, corresponding to 0-degree angle |
| maxPulseWidth | The maximum pulse width, in microseconds, corresponding to 180-degree angle |
◆ Dispose()
◆ MinPulseWidth
Gets or sets the minimum pulse width for the motor
◆ MaxPulseWidth
Gets or sets the max pulse width of the motor
◆ Angle
Gets or sets the angle of the servo
The documentation for this class was generated from the following file:
- F:/Git/treehopper-sdk/NET/API/Treehopper.Libraries/Motors/HobbyServo.cs