Making POV public for LVC Robot Club

Dependencies:   mbed m3pi

Files at this revision

API Documentation at this revision

Comitter:
jonmarsh
Date:
Mon Oct 10 10:21:25 2011 +0000
Commit message:
Says \"Hello\"

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	Mon Oct 10 10:21:25 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/chris/code/m3pi/#62ee1486ecb9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Oct 10 10:21:25 2011 +0000
@@ -0,0 +1,36 @@
+#include "mbed.h"
+#include "m3pi.h"
+
+m3pi m3pi(p23,p9,p10);
+
+char pov[30] = {
+
+    0x7f,0x08,0x08,0x08,0x7f,0x0,   // H
+    0x7f,0x49,0x49,0x41,0x41,0x0,   // E
+    0x00,0x7f,0x01,0x01,0x01,0x0,   // L
+    0x00,0x7f,0x01,0x01,0x01,0x0,   // L
+    0x3e,0x41,0x41,0x41,0x3e,0x0,   // O
+
+};
+
+
+int main() {
+
+    m3pi.locate(0,1);
+    m3pi.printf("m3pi PoV");
+    
+    wait(2.0);
+
+    m3pi.right(1.0); // spin full speed right!
+
+    while (1) {
+
+        for (int i=0;i<30;i++) {
+            m3pi.leds(pov[i]);
+            wait(0.005);
+        }
+
+
+        wait (0.1);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Oct 10 10:21:25 2011 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/e2ac27c8e93e