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 06:14:58 2014 +0000
Parent:
3:3b04a122e508
Child:
5:56daa8c0697d
Commit message:
Testing inner class docs

Changed in this revision

TLC5940Servo.h Show annotated file Show diff for this revision Revisions of this file
--- a/TLC5940Servo.h	Tue Oct 21 06:06:30 2014 +0000
+++ b/TLC5940Servo.h	Tue Oct 21 06:14:58 2014 +0000
@@ -37,6 +37,11 @@
     class Servo {
     public:
         Servo();
+        /** 
+         * Set the servo position, normalised to it's full range
+         *
+         * @param percent A normalised number 0.0-1.0 to represent the full range.
+         */
         void write(float percent);
         void calibrate(float range=0.0005, float degrees=45.0);
         float read();