Lobster controller program

Dependencies:   FatFileSystem HBridge MSCFileSystem WavPlayer mbed

Fork of RSALB_hbridge_helloworld by Giles Barton-Owen

Files at this revision

API Documentation at this revision

Comitter:
p07gbar
Date:
Thu Sep 20 11:36:32 2012 +0000
Child:
1:939f893149f2
Commit message:
Working

Changed in this revision

HBridge.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/HBridge.lib	Thu Sep 20 11:36:32 2012 +0000
@@ -0,0 +1,1 @@
+HBridge#16208393c7ae
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Sep 20 11:36:32 2012 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+#include "HBridge.h"
+
+HBridge hbridge(p18,p15,p22);
+DigitalIn button(p16);
+AnalogIn pot1(p19);
+
+int main() {
+ button.mode(PullDown);
+    while(1) {
+        hbridge.speed((pot1 - 0.5) * 2);
+        hbridge.power(bool(button));
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Sep 20 11:36:32 2012 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/cd19af002ccc
\ No newline at end of file