Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 1:fcea0d9117c5, committed 2011-10-17
- 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 |
diff -r 4ec8695c9c5b -r fcea0d9117c5 Servo.lib --- 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
diff -r 4ec8695c9c5b -r fcea0d9117c5 main.cpp
--- 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
+
+// ---------------------------------------------------------------------------
+