Library for using the TLC5940 as a servo controller.
Revision 6:b001282e967b, committed 2014-10-21
- 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 |
diff -r 56daa8c0697d -r b001282e967b TLC5940Servo.cpp --- 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);
diff -r 56daa8c0697d -r b001282e967b TLC5940Servo.h --- 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