Hello world for the TLC5940Servo library.

Dependencies:   TLC5940Servo mbed

Revision:
3:ad4dfe34cfcd
Parent:
2:faa25eaa18dd
diff -r faa25eaa18dd -r ad4dfe34cfcd main.cpp
--- a/main.cpp	Tue Oct 21 06:10:08 2014 +0000
+++ b/main.cpp	Tue Oct 21 15:06:20 2014 +0000
@@ -6,11 +6,11 @@
 int main()
 {   
     // Calibrate the 5th motor
-    tlc.calibrate(5, 0.0006, 40.0);
+    tlc[5].calibrate(0.0006, 40.0);
     while (1) {
-        for (float i = 0.0; i < 1.0; i += 0.05) {
+        for (float i = 0.0; i <= 1.01; i += 0.05) {
             tlc[5] = i; // assigning
-            printf("%f\n\r", tlc[5]); // reading
+            printf("%f\n\r", (float)tlc[5]); // reading
             wait (0.1);
         }
         wait(0.5);