mbed library and test Hello World program

Dependencies:   mbed

Fork of m3pi by Chris Styles

Files at this revision

API Documentation at this revision

Comitter:
chrisell512
Date:
Fri Mar 21 00:43:19 2014 +0000
Parent:
8:4b7d6ea9b35b
Commit message:
Test #1 3/20/14 7:43 PM

Changed in this revision

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
diff -r 4b7d6ea9b35b -r c7a64b3c1ad5 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Mar 21 00:43:19 2014 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+#include "m3pi.h"
+
+m3pi m3pi;
+
+int main() {
+
+    m3pi.locate(0,1);
+    m3pi.printf("LO World");
+
+    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();       
+}
\ No newline at end of file
diff -r 4b7d6ea9b35b -r c7a64b3c1ad5 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Mar 21 00:43:19 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7d30d6019079
\ No newline at end of file