Class ServoT2 - GSTCH/SketchMadeEASY GitHub Wiki
Topic | Specification |
---|---|
Description | This class controls a position drive. It controls a servo using Timer INT2. Use this class e.g. with Arduino UNO, when Log with Serial0 to the IDE. 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 |
ServoT2(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 | ServoT2* servo = new ServoT2(9, 0, 180); |
Examples | Example 17‐Servo position in relation to a potentiometer |