Hello world program that just gets the m3pi moving

Dependencies:   mbed m3pi

Files at this revision

API Documentation at this revision

Comitter:
chris
Date:
Fri Oct 29 13:32:33 2010 +0000
Child:
1:05bdd0697e72
Commit message:
1.0 - Initial revision

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	Fri Oct 29 13:32:33 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/chris/code/m3pi/#816a80dcc1a3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Oct 29 13:32:33 2010 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "m3pi.h"
+
+m3pi pi(p8,p9,p10);
+
+int main() {
+
+    wait(0.5);
+
+    pi.forward(0.5);
+    wait (0.5);
+    pi.left(0.5);
+    wait (0.5);
+    pi.backward(0.5);
+    wait (0.5);
+    pi.right(0.5);
+    wait (0.5);
+
+    pi.stop();
+
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Oct 29 13:32:33 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e