EvoServo#
-
class EvoServo#
Class to control a servo motor using the EvoPWMDriver.
Initialisation & Setup
-
EvoServo::EvoServo(ServoChannel servoChannel, ServoType servoType = Default)#
Constructs an EvoServo object.
- Parameters:
servoChannel – The servo channel to use.
servoType – The type of servo motor (default is Default).
Control Functions
-
void EvoServo::setPulse(int minPulse, int maxPulse)#
Sets the pulse width range for the servo.
- Parameters:
minPulse – Minimum pulse width.
maxPulse – Maximum pulse width.
-
void EvoServo::setRange(int minRange, int maxRange)#
Sets the rotation range of the servo.
- Parameters:
minRange – Minimum angle (in degrees).
maxRange – Maximum angle (in degrees).