Simon Ford / LIS302

Dependents:   LIS302_HelloWorld mbed_line_camera

Files at this revision

API Documentation at this revision

Comitter:
simon
Date:
Fri Nov 13 00:02:35 2009 +0000
Child:
1:fe7ccd3480e6
Commit message:

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Nov 13 00:02:35 2009 +0000
@@ -0,0 +1,13 @@
+// LIS302 Hello World!
+
+#include "mbed.h"
+#include "LIS302.h"
+
+LIS302 acc(p5, p6, p7, p8); // mosi, miso, sclk, ncs
+
+int main() {
+    while(1) {
+        printf("%.3f %.3f %.3f\n", acc.x(), acc.y(), acc.z());
+        wait(0.1);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Nov 13 00:02:35 2009 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/737756e0b479