Test accelerometer

Dependencies:   MMA845x mbed

Files at this revision

API Documentation at this revision

Comitter:
sam_grove
Date:
Fri Jul 26 21:43:57 2013 +0000
Commit message:
Work in progress...

Changed in this revision

MMA845x.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/MMA845x.lib	Fri Jul 26 21:43:57 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/sam_grove/code/MMA845x/#9d1e3a344e4f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Jul 26 21:43:57 2013 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+#include "MMA845x.h"
+
+DigitalOut myled(LED1);
+
+int main() {
+    while(1) {
+        myled = 1;
+        wait(0.2);
+        myled = 0;
+        wait(0.2);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Jul 26 21:43:57 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/5e5da4a5990b
\ No newline at end of file