Class ServoT1 - GSTCH/SketchMadeEASY GitHub Wiki

Actuator ServoT1

Topic Specification
Description This class controls a position drive. It controls a servo using Timer INT1.
Sketch Made EASY includes an auto map from input to actuator. The class map the range of the assigned input (via relation) to an angle.
Constructor ServoT1(int Pin, int MinAngle, int MaxAngle)
Parameter
Pin: Digital (Out) Pin with PWM
MinAngle:Minimum angle of the servo
MaxAngle: Maximum angle of the servo
Range MinAngle…MaxAngle
Samples ServoT1* servo = new ServoT1(9, 0, 180);
Examples Example 17‐Servo position in relation to a potentiometer
⚠️ **GitHub.com Fallback** ⚠️