project

Dependencies:   m3pi mbed

Files at this revision

API Documentation at this revision

Comitter:
mbed6_khbo
Date:
Thu Feb 05 13:36:21 2015 +0000
Child:
1:b02103c44389
Commit message:
start

Changed in this revision

m3pi.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/m3pi.lib	Thu Feb 05 13:36:21 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/chris/code/m3pi/#4b7d6ea9b35b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Feb 05 13:36:21 2015 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "m3pi.h"
+
+DigitalOut myled(LED1);
+
+int main() {
+    while(1) {
+         m3pi.locate(0,1);
+    m3pi.printf("sexy ride");
+ 
+    wait (2.0);
+ 
+    m3pi.forward(0.5); // Forward half speed
+    wait (0.5);        // wait half a second
+    m3pi.left(0.5);    // Turn left at half speed
+    wait (0.5);        // wait half a second
+    m3pi.backward(0.5);// Backward at half speed 
+    wait (0.5);        // wait half a second
+    m3pi.right(0.5);   // Turn right at half speed
+    wait (0.5);        // wait half a second
+ 
+    m3pi.stop();       
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Feb 05 13:36:21 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e188a91d3eaa
\ No newline at end of file