Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
gbeardall
Date:
Mon Oct 17 10:41:21 2011 +0000
Parent:
0:4ec8695c9c5b
Commit message:

Changed in this revision

Servo.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Servo.lib	Fri Aug 19 13:02:34 2011 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://mbed.org/users/cr0n0s20/code/Servo/#5490c22f727d
--- a/main.cpp	Fri Aug 19 13:02:34 2011 +0000
+++ b/main.cpp	Mon Oct 17 10:41:21 2011 +0000
@@ -4,7 +4,6 @@
  */
 
 #include "mbed.h"
-#include "Servo.h"
 
 DigitalOut led1(LED1);
 DigitalOut led2(LED2);
@@ -13,8 +12,6 @@
 
 Serial pc(USBTX,USBRX);
 
-Servo servo(p21);
-
 Ticker tick2;
 Ticker tick3;
 Ticker tick4;
@@ -46,15 +43,8 @@
     led4 = 1;
     tick4.attach(&flash4, 2.0);
 
-    pc.printf("Start: flash1\n\n");
+    pc.printf("\n\rStart: flash1\n\r");
     
-    // sweep servo
-    for( float p=0; p<=1.0; p+=0.1) {
-        servo = p;
-        wait(0.2);
-    } // for 
-
-
     while (1) {
         led1 = 1;
         wait(0.25);
@@ -66,3 +56,6 @@
     } // while
 
 } // main
+
+// ---------------------------------------------------------------------------
+