Class ServoT1 - GSTCH/SketchMadeEASY GitHub Wiki
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 PWMMinAngle: Minimum angle of the servoMaxAngle: 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 |