miniblip servo example

Dependencies:   Servo mbed

Files at this revision

API Documentation at this revision

Comitter:
pighixxx
Date:
Thu Nov 26 09:29:07 2015 +0000
Commit message:
miniblip servo example

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Servo.lib	Thu Nov 26 09:29:07 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/simon/code/Servo/#36b69a7ced07
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Nov 26 09:29:07 2015 +0000
@@ -0,0 +1,13 @@
+// miniblip servo demo
+ 
+#include "mbed.h"
+#include "Servo.h"
+ 
+Servo myservo(P0_15);
+ 
+int main() {    
+    for(float p=0; p<1.0; p += 0.1) {
+        myservo = p;
+        wait(0.2);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Nov 26 09:29:07 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/552587b429a1
\ No newline at end of file