FEHServo

back to FEHServo

Description

Library: FEHServo.h

This object is used to control the 8 servo motor ports on the top of your Proteus controller. Once you have declared a variable of type FEHServo and assigned it to one of the eight servo ports, you will have access to all of the member functions associated with the FEHServo object. Simply use the “dot” operator to access these member functions and control your servo motor attached to the respective servo port. If you plan to use multiple servo motors, you will need to create a variable of type FEHServo for each servo motor that you wish to control. Remember to use the .TouchCalibrate() member function once for each servo you purchase to make sure that your servo motors operate effectively. The FEHServo library cannot be used with a hacked servo motor. If you decide to hack your servo motor, you will need to use the FEHMotor object to control your hacked servo.

For information on port enumerations, see the Hardware section.

Member Functions

void TouchCalibrate()
void SetMin(int min)
void SetMax(int max)
void SetDegree(float angle)
void Off()

Declaration

FEHServo <variable name>(FEHServo::FEHServoPort);

Example

#include <FEHServo.h>

int main(void)
{
    //declares a servo on servo port 3
    FEHServo arm_servo(FEHServo::Servo3); 
}