Library for using the TLC5940 as a servo controller.

Dependencies:   FastPWM

Dependents:   TLC5940ServoTest

Files at this revision

API Documentation at this revision

Comitter:
dudanian
Date:
Tue Oct 21 15:05:16 2014 +0000
Parent:
5:56daa8c0697d
Commit message:
Removed indexed calibrate to make usage more like an array of mbed official Servos

Changed in this revision

TLC5940Servo.cpp Show annotated file Show diff for this revision Revisions of this file
TLC5940Servo.h Show annotated file Show diff for this revision Revisions of this file
--- a/TLC5940Servo.cpp	Tue Oct 21 06:26:25 2014 +0000
+++ b/TLC5940Servo.cpp	Tue Oct 21 15:05:16 2014 +0000
@@ -21,10 +21,6 @@
     delete[] servos;
 }
 
-void TLC5940Servo::calibrate(int index, float range, float degrees) {
-    servos[index].calibrate(range, degrees);
-}
-
 void TLC5940Servo::calibrate(float range, float degrees) {
     for (int i = 0; i < 16 * number; i++)
         servos[i].calibrate(range, degrees);
--- a/TLC5940Servo.h	Tue Oct 21 06:26:25 2014 +0000
+++ b/TLC5940Servo.h	Tue Oct 21 15:05:16 2014 +0000
@@ -105,14 +105,6 @@
     ~TLC5940Servo();
 
     /**
-     * Allows calibration of the range and angles for a particular servo
-     *
-     * @param range Pulsewidth range from center (1.5ms) to maximum/minimum position in seconds
-     * @param degrees Angle from centre to maximum/minimum position in degrees
-     */
-    void calibrate(int index, float range, float degrees);
-
-    /**
      * Allows calibration of the range and angles for all servos
      *
      * @param range Pulsewidth range from center (1.5ms) to maximum/minimum position in seconds