Chumbaka

Dependencies:   Servo mbed Chumbaka_backup

Dependents:   Chumbaka_backup

Fork of Servo_HelloWorld by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
limcheecheng
Date:
Wed Mar 19 10:12:29 2014 +0000
Parent:
1:40d2fd0b99e6
Child:
3:e836d1c41a0b
Commit message:
For Chumbaka

Changed in this revision

Servo.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/Servo.lib	Tue Nov 23 16:10:35 2010 +0000
+++ b/Servo.lib	Wed Mar 19 10:12:29 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/simon/code/Servo/#36b69a7ced07
+http://mbed.org/users/limcheecheng/code/Servo/#17d4a46f3f54
--- a/main.cpp	Tue Nov 23 16:10:35 2010 +0000
+++ b/main.cpp	Wed Mar 19 10:12:29 2014 +0000
@@ -1,13 +1,12 @@
-// Hello World to sweep a servo through its full range
+#include "mbed.h"
 
-#include "mbed.h"
-#include "Servo.h"
+DigitalOut myled(LED2);
 
-Servo myservo(p21);
-
-int main() {    
-    for(float p=0; p<1.0; p += 0.1) {
-        myservo = p;
+int main() {
+    while(1) {
+        myled = 1;
+        wait(0.2);
+        myled = 0;
         wait(0.2);
     }
 }
--- a/mbed.bld	Tue Nov 23 16:10:35 2010 +0000
+++ b/mbed.bld	Wed Mar 19 10:12:29 2014 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e
+http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1
\ No newline at end of file